2021-02-03 18:50:34 +01:00
parent 03cafbf4c6
commit c76e401021
6 changed files with 152 additions and 78 deletions

View File

@@ -17,15 +17,22 @@
*/
namespace Chill\PersonBundle\Repository;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\QueryBuilder;
use Doctrine\ORM\Query\ResultSetMappingBuilder;
/**
* Class ClosingMotiveRepository
* Entity repository for closing motives
*
* @package Chill\PersonBundle\Repository
*/
class ClosingMotiveRepository extends \Doctrine\ORM\EntityRepository
class ClosingMotiveRepository extends EntityRepository
{
/**
* @param bool $onlyLeaf
* @return mixed
*/
public function getActiveClosingMotive(bool $onlyLeaf = true)
{
$rsm = new ResultSetMappingBuilder($this->getEntityManager());