Browse Source

Used empty() instead of implicit conversion

José Lorenzo Rodríguez 10 years ago
parent
commit
35c8bfe7c1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ORM/EagerLoader.php

+ 1 - 1
src/ORM/EagerLoader.php

@@ -349,7 +349,7 @@ class EagerLoader
 
             $newAttachable = $this->attachableAssociations($repository);
             $attachable = array_diff_key($newAttachable, $processed);
-        } while ($attachable);
+        } while (!empty($attachable));
     }
 
     /**