findByExample in Doctrine

后端 未结 3 1014
醉话见心
醉话见心 2021-02-19 03:01

Is there a method in Doctrine like Hibernate\'s findByExample method?

thanks

3条回答
  •  太阳男子
    2021-02-19 03:48

    $users = $userTable->findByIsAdminAndIsModeratorOrIsSuperAdmin(true, true, true);
    

    See http://www.doctrine-project.org/projects/orm/1.2/docs/manual/dql-doctrine-query-language/en

提交回复
热议问题