Skip to content

Commit

Permalink
Force ExistsIn rule in new Entiy even with a not dirty field
Browse files Browse the repository at this point in the history
  • Loading branch information
raul338 committed May 8, 2016
1 parent edb4ac7 commit 66c4011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/Rule/ExistsIn.php
Expand Up @@ -94,7 +94,7 @@ public function __invoke(EntityInterface $entity, array $options)
return true;
}

if (!$entity->extract($this->_fields, true)) {
if (!$entity->extract($this->_fields, true) && !$entity->isNew()) {
return true;
}

Expand Down

0 comments on commit 66c4011

Please sign in to comment.