diff --git a/src/Cacic/CommonBundle/Entity/LogUserLogadoRepository.php b/src/Cacic/CommonBundle/Entity/LogUserLogadoRepository.php new file mode 100644 index 0000000..8cacc9f --- /dev/null +++ b/src/Cacic/CommonBundle/Entity/LogUserLogadoRepository.php @@ -0,0 +1,30 @@ +createQueryBuilder('acesso') + ->select('acesso') + ->where('acesso.idComputador = :computador') + ->orderBy('acesso.data', 'desc') + ->setMaxResults(1) + ->setParameter('computador', $computador ); + + return $qb->getQuery()->getOneOrNullResult(); + } + +} -- libgit2 0.21.2