public function findUserList(User $user)
    {
        $dql = 'SELECT e FROM Phraseanet:UsrListEntry e
            WHERE e.user = :usr_id';

        $params = [
            'usr_id' => $user->getId(),
        ];

        $query = $this->_em->createQuery($dql);
        $query->setParameters($params);

        return $query->getResult();
    }
public function findUserList(User $user)
    {
        $dql = 'SELECT e FROM Phraseanet:UsrListEntry e
            WHERE e.user = :usr_id';

        $params = [
            'usr_id' => $user->getId(),
        ];

        $query = $this->_em->createQuery($dql);
        $query->setParameters($params);

        return $query->getResult();
    }
public function findUserList ( User $ user ) { $ dql = 'SELECT e FROM Phraseanet:UsrListEntry e
            WHERE e.user = :usr_id' ; $ params = [ 'usr_id' => $ user -> getId ( ) , ] ; $ query = $ this -> _em -> createQuery ( $ dql ) ; $ query -> setParameters ( $ params ) ; return $ query -> getResult ( ) ; }
Get all lists entries matching a given User

@param User $user
@param type $like
Get all lists entries matching a given User