Skip to content

Commit 90dc3a7

Browse files
authored
Merge pull request #64 from Ridzuan94/issue/63
Issue/63
2 parents 7e8ac1a + d0258cc commit 90dc3a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/Behavior/EnumBehavior.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public function __call(string $method, array $args): bool
292292
throw new MissingEnumConfigurationException([$alias]);
293293
}
294294

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

0 commit comments

Comments
 (0)