Releases: dereuromark/cakephp-shim
IN / NOT IN shim pendant for 2.x
0.5.3 Add Shim arrayConditionArray for 3.x upgrading of IN / NOT IN
IN / NOT IN shims
Assert valid controller action names
Using Configure::read('Shim.assertActionNames')
you can assert that all controller actions have been properly migrated to the new camelBacked naming scheme. They must not be underscored anymore for DashedRoute setup.
existsById() shim
1.0.3 Fix up doc blocks
Also shim exists() and delete()
exists() in 3.x uses array and delete() requires an argument (no $this->id internally).
Make sure we get no false positives
Some core components still use the now deprecated way.
Those should be excluded from throwing notices.
Also now shims saveField() via saveFieldById().
Add warnAboutOldRouting shim
- Param
ext
should be_ext
in URL arrays - Param
full_base
should be_full
in URL arrays
Later those will be very hard to catch with those millions of lines changed when upgrading to 3.x.
They will also be silently ignored then, so better to adjust them now already.
Rules return early
Prevent a small issue with validation rules shim.
Re-add i18n validation message array
It is now possible again to set up an array for the validation message.
CakePHP 2.x: TreeBehavior
The TreeBehavior of 3.x has been shimmed.
generateTreeList()
, children()
and getPath()
will not be existent anymore.
You can now use the custom finders of 3.x in your 2.x app:
- find('treeList')
- find('path')
- find('children')
That includes the options that will now be the 2nd argument instead of a long list of arguments.
Note that the TreeBehavior has still to be loaded for the Model to be able to use those finders.