Browse Source

Force ExistsIn rule in new Entiy even with a not dirty field

Raúl Arellano 10 years ago
parent
commit
66c4011073
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ORM/Rule/ExistsIn.php

+ 1 - 1
src/ORM/Rule/ExistsIn.php

@@ -94,7 +94,7 @@ class ExistsIn
             return true;
         }
 
-        if (!$entity->extract($this->_fields, true)) {
+        if (!$entity->extract($this->_fields, true) && !$entity->isNew()) {
             return true;
         }