You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!$entity->has($config['field']) && Hash::get($config, 'allowEmpty') === true) {
In CakePHP v5, the Entity::has() changed as mentioned in here
This change caused an issue on my end where fields with null values triggered errors in buildRules. I prefer not to disable applicationRules to handle this scenario. Instead, it’s better to replace !Entity::has() with Entity::isEmpty() to address the problem.
The text was updated successfully, but these errors were encountered:
The option allowEmpty was introduced in #34
The plugin has been upgraded to support CakePHP v5. Despite the upgrade, the lines of code (LOC) remain unchanged
Enum/src/Model/Behavior/EnumBehavior.php
Line 295 in 7e8ac1a
In CakePHP v5, the
Entity::has()
changed as mentioned in hereThis change caused an issue on my end where fields with
null
values triggered errors inbuildRules
. I prefer not to disableapplicationRules
to handle this scenario. Instead, it’s better to replace!Entity::has()
withEntity::isEmpty()
to address the problem.The text was updated successfully, but these errors were encountered: