This repository was archived by the owner on Nov 27, 2023. It is now read-only.
Releases: dereuromark/cakephp-hashid
Releases · dereuromark/cakephp-hashid
1.4.1
1.4.0
Improvements
Allow next hashid major v4.
1.3.0
Improvements
- Allow new hashids version 3.
- Added PHPStan support level 5.
1.2.1
Bugfixes
Model data validation now works as expected together with this plugin.
Add alphabet and minHashLength options
You can now define a custom alphabet of at least 16 characters.
You can also now set a min length for the generated hash.
Small fixes
Support find(list)
Also fixed:
- Check if entity before call the dirty function on it
- Small bugfix with
recursive => true
: Only run code for primary table
Allow deleting
1.1.2 Allow deleting
Fix entity after save
1.1.1 Fix bug with reusing entity after save.
Allow updating of records
So far the updating did not work when the primary key itself was the hashid config.
The beforeSave() hook now resolves this.
Also fixed a few issues with non primary records fetched.
Initial release for CakePHP 3.x
Stable release.
Added:
- Throw 404 for invalid number range to avoid accidental hashing out impossible numbers.