Skip to content

Commit a7573be

Browse files
author
Benjamin Tamási
committed
remove ->all()
1 parent 6aa6387 commit a7573be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/TestCase/ORM/Association/HasManyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ public function testUnlinkWithoutContain()
680680
]);
681681

682682
$entity = $this->author->get(1);
683-
$entities = $this->article->find()->where(['Articles.author_id' => $entity->id])->all();
683+
$entities = $this->article->find()->where(['Articles.author_id' => $entity->id]); // Without ->all()
684684
$this->assertCount(2, $entities);
685685

686686
$assoc->unlink($entity, $entities);

0 commit comments

Comments
 (0)