add model option in user:list

This commit is contained in:
aynsix
2020-02-26 12:37:05 +03:00
parent 999b311d12
commit 2e21bc0448
2 changed files with 27 additions and 6 deletions

View File

@@ -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();
}
}