| Current Path : /var/www/v3.cesa.co.za/src/SessionsBundle/Repository/ |
| Current File : /var/www/v3.cesa.co.za/src/SessionsBundle/Repository/SessionValuesRepository.php |
<?php
namespace App\SessionsBundle\Repository;
/**
* SessionValuesRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class SessionValuesRepository extends \Doctrine\ORM\EntityRepository {
/**
* Get the session values by session ids
*
* @param array $sessionIds
* @return array
*/
public function findBySessionIds($sessionIds) {
$qb = $this->createQueryBuilder('sv')
->join('sv.sessions', 'se')
->where('se.id IN (:sessionIds)')
->setParameter('sessionIds', $sessionIds)
;
// echo $qb->getQuery()->getSQL() . "\n";
// exit;
return $qb->getQuery()->getArrayResult();
}
}