2015年4月10日 KU案例2之12 Doctrine QueryBuilder 如果我们想通过匹配email或者username字段来找到一个用户。我们会在UserRepository里增加一个findOneByUsernameOrEmail方法: read more »