Tags: dereuromark/cakephp-tools
Tags
Add uniqueCallback option to SluggedBehavior (#312) Add a new `uniqueCallback` config option that allows customizing the uniqueness check when generating slugs. This is useful when other behaviors modify queries (e.g., multi-tenant scoping) and need to be temporarily disabled during the slug uniqueness check. The callback receives the Table instance and conditions array, and must return a boolean indicating whether a matching slug exists. Fixes #311
Fix findList deprecation in getRelatedInUse and getFieldInUse (#305) * Fix findList deprecation in getRelatedInUse and getFieldInUse Since CakePHP 5.0, calling `findList` finder with options array is deprecated. Use named arguments instead. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Improve code. * Improve code. --------- Co-authored-by: Claude <[email protected]>
Allow specific extensions for controller actions. (#302) * Allow specific extensions for controller actions. * Update src/Controller/Component/CommonComponent.php Co-authored-by: Marc Würth <[email protected]> * Update src/Controller/Component/CommonComponent.php Co-authored-by: Marc Würth <[email protected]> * Adjust as per review. --------- Co-authored-by: Marc Würth <[email protected]>
PreviousNext