Entity/ParamUsersRepository.php
public function getActive() {
		$oDelay = new \DateTime('now');
		$oDelay->setTimestamp(strtotime('2 minutes ago'));
		
		$oQb = $this->createQueryBuilder('U');
		$oQb->select()
			->where($oQb->expr()->gt('U.lastActivityAt', ':delay'))
			->setParameter(':delay', $oDelay);
		
        return $oQb->getQuery()->getArrayResult();
	}
public function getActive() {
		$oDelay = new \DateTime('now');
		$oDelay->setTimestamp(strtotime('2 minutes ago'));
		
		$oQb = $this->createQueryBuilder('U');
		$oQb->select()
			->where($oQb->expr()->gt('U.lastActivityAt', ':delay'))
			->setParameter(':delay', $oDelay);
		
        return $oQb->getQuery()->getArrayResult();
	}
Retourne les utilisateurs actifs

@return array