Skip to content
Permalink
Browse files

shorter boolean check

  • Loading branch information...
Jonas
Jonas committed May 30, 2016
1 parent 644a742 commit 363ff8e238d816dbd7a8541c18add1ba207085f3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ORM/Rule/ExistsIn.php
@@ -160,7 +160,7 @@ protected function _checkPartialSchemaNulls($entity, $source)
{
$schema = $source->schema();
foreach ($this->_fields as $field) {
if ($schema->isNullable($field) === true && $entity->get($field) === null) {
if ($schema->isNullable($field) && $entity->get($field) === null) {
return true;
}
}

0 comments on commit 363ff8e

Please sign in to comment.
You can’t perform that action at this time.