Skip to content

Releases: dereuromark/cakephp-shim

IN / NOT IN shim pendant for 2.x

10 Jan 03:00
Compare
Choose a tag to compare
0.5.3

Add Shim arrayConditionArray for 3.x upgrading of IN / NOT IN

IN / NOT IN shims

Assert valid controller action names

03 Jan 20:54
Compare
Choose a tag to compare

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

30 Dec 00:48
Compare
Choose a tag to compare
1.0.3

Fix up doc blocks

Also shim exists() and delete()

18 Dec 01:12
Compare
Choose a tag to compare

exists() in 3.x uses array and delete() requires an argument (no $this->id internally).

Make sure we get no false positives

14 Dec 14:47
Compare
Choose a tag to compare

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

12 Dec 19:26
Compare
Choose a tag to compare
  • 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

15 Nov 22:44
Compare
Choose a tag to compare

Prevent a small issue with validation rules shim.

Re-add i18n validation message array

31 May 14:37
Compare
Choose a tag to compare

It is now possible again to set up an array for the validation message.

CakePHP 2.x: TreeBehavior

14 May 18:25
Compare
Choose a tag to compare

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.