mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-01-13 12:51:24 +00:00
apply rector rules
This commit is contained in:
@@ -22,6 +22,8 @@ use Doctrine\Persistence\ManagerRegistry;
|
||||
*
|
||||
* This class was generated by the Doctrine ORM. Add your own custom
|
||||
* repository methods below.
|
||||
*
|
||||
* @extends \Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository<\Chill\BudgetBundle\Entity\Charge>
|
||||
*/
|
||||
class ChargeRepository extends ServiceEntityRepository
|
||||
{
|
||||
@@ -59,10 +61,7 @@ class ChargeRepository extends ServiceEntityRepository
|
||||
$qb->orderBy($sort);
|
||||
}
|
||||
|
||||
$qb->setParameters([
|
||||
'entity' => $entity,
|
||||
'date' => $date,
|
||||
]);
|
||||
$qb->setParameters(new \Doctrine\Common\Collections\ArrayCollection([new \Doctrine\ORM\Query\Parameter('entity', $entity), new \Doctrine\ORM\Query\Parameter('date', $date)]));
|
||||
|
||||
return $qb->getQuery()->getResult();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user