SocialIssues became editable via admin

This commit is contained in:
Marc Ducobu
2021-05-18 16:24:27 +02:00
committed by Julien Fastré
parent a948d9e2da
commit d8ee42b0a5
11 changed files with 222 additions and 13 deletions

View File

@@ -18,11 +18,13 @@
namespace Chill\PersonBundle\Repository;
use Chill\PersonBundle\Entity\Person;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\QueryBuilder;
final class PersonRepository
{
private EntityRepository $repository;
@@ -113,11 +115,20 @@ final class PersonRepository
$qb->setParameter('phonenumber', '%'.$phonenumber.'%');
}
/**
* @param $phonenumber
* @return string
*/
protected function parsePhoneNumber(string $phonenumber): string
{
return \str_replace(' ', '', $phonenumber);
}
/**
* @param QueryBuilder $qb
* @param array $centers
*/
protected function addByCenters(QueryBuilder $qb, array $centers): void
{
if (count($centers) > 0) {