Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在findAll()条件下使用该功能?
findAll()
我想做类似的事情
->findAll('active'=1);
我知道我可以编写自定义存储库类,但只是为了一个简单的“where-condition”,我认为有一种更简单的方法。
您可以使用findBy:
findBy
$objects = $yourRepo -> findBy(array('key' => $value ));