for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ClientBundle\Repository;
use Doctrine\ORM\EntityRepository;
/**
* Class ClientRepository
*/
class ClientRepository extends EntityRepository
{
* @param \ClientBundle\Entity\Tags $tags
* @return array
public function getIdArrayByTags($tags)
$tagsarray = implode([', '], $tags);
return $this->getEntityManager()
->createQuery("'SELECT c.id FROM ClientBundle:Client c WHERE'")
->setParameter('tag', $tagsarray)
->getResult();
}