Skip to content

Commit

Permalink
Merge pull request #64 from Ridzuan94/issue/63
Browse files Browse the repository at this point in the history
Issue/63
  • Loading branch information
arusinowski authored Dec 9, 2024
2 parents 7e8ac1a + d0258cc commit 90dc3a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Behavior/EnumBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ public function __call(string $method, array $args): bool
throw new MissingEnumConfigurationException([$alias]);
}

if (!$entity->has($config['field']) && Hash::get($config, 'allowEmpty') === true) {
if ($entity->isEmpty($config['field']) && Hash::get($config, 'allowEmpty') === true) {
return true;
}

Expand Down

0 comments on commit 90dc3a7

Please sign in to comment.