Are there any issues with upgrading from ColdBox 3.0.0 M5-318-GENESIS-14:14 to M6?
Thanks,
Mallory
Are there any issues with upgrading from ColdBox 3.0.0 M5-318-GENESIS-14:14 to M6?
Thanks,
Mallory
Mallory,
The only thing I can think of to be aware of is what we mentioned on this blog post in terms of changes to the ORM Services.
http://blog.coldbox.org/post.cfm/coldbox-orm-service-changes-from-m5-to-m6
Curt Gratz
Computer Know How
Check your cfproperty tags if you use autowiring. “type” is now “inject”.
// Inject not Autowire
cfcomponent inject=true {…}
New Style (inject)
cfproperty name=‘model’ inject; // Model
cfproperty name=‘SessionStorage’ inject=‘coldbox:plugins:SessionStorage’;
Old Style (autowire)
cfproperty name=‘model’ autowire=‘true’
cfproperty name=‘SessionStorage’ autowire=‘coldbox:plugins:SessionStorage’;
That actually changed previously, M5 has the inject="" syntax. Can't
recall when that changed though.
Cheers,
Judah
Yes, but it wasn't until M6 that the type="" syntax was removed entirely. I had that issue when I upgraded my dev box to M6. So it's safe to change your code to inject="" in M5, but make sure you do before migrating to M6.
/Sean
Thanks, I will be checking these!