Browse Source

Refactoring services

feature/symfony6.1
Guillaume 3 years ago
parent
commit
0b0f5695f2
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      Repository/AbstractRepositoryQuery.php

+ 5
- 0
Repository/AbstractRepositoryQuery.php View File

@@ -128,6 +128,11 @@ abstract class AbstractRepositoryQuery implements RepositoryQueryInterface
->setParameter('id', $id);
}

public function andWhereEqual($field, $value)
{
return $this->andWhere('.'.$field.' = :'.$field)->setParameter($field, $value);
}

/*
* DEVALIAS
*/

Loading…
Cancel
Save