mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 21:43:18 +00:00
add model option in user:list
This commit is contained in:
@@ -122,4 +122,15 @@ class UserRepository extends EntityRepository
|
||||
{
|
||||
return $this->findBy(['templateOwner' => $user->getId()]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds all templates
|
||||
*/
|
||||
public function findTemplate()
|
||||
{
|
||||
$qb = $this->createQueryBuilder('u');
|
||||
$qb->where('u.templateOwner is NOT NULL');
|
||||
|
||||
return $qb->getQuery()->getResult();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user