Commit b614b4df7975e2203606e15b2fb55929d995f3fe
1 parent
7de1988b
Exists in
master
alterando consulta
Showing
1 changed file
with
3 additions
and
4 deletions
Show diff stats
src/Cacic/CommonBundle/Entity/LogUserLogadoRepository.php
... | ... | @@ -32,10 +32,9 @@ class LogUserLogadoRepository extends EntityRepository |
32 | 32 | public function selectUserLogado( $teIpComputador , $nmComputador ,$usuario, $dtHrInclusao ,$dtHrInclusaoFim ) |
33 | 33 | { |
34 | 34 | |
35 | - $query = $this->createQueryBuilder('c') | |
36 | - ->select('c.nmComputador', 'c.teIpComputador', 'log.data', 'log.usuario') | |
37 | - ->from('computador', 'c') | |
38 | - ->innerJoin('log.idComputador', 'WITH', 'c.idComputador'); | |
35 | + $query = $this->createQueryBuilder('log') | |
36 | + ->select('comp.nmComputador', 'comp.teIpComputador', 'log.data', 'log.usuario') | |
37 | + ->innerJoin('CacicCommonBundle:Computador','comp', 'WITH', 'log.idComputador = comp.idComputador'); | |
39 | 38 | |
40 | 39 | if ( $teIpComputador != null){ |
41 | 40 | ... | ... |