But once I get caught using doctrine usage.
I wanted to do this:
SELECT c.nm_computador, c.te_ip_computador, log.usuario, log.data
FROM computador c
INNER JOIN log_user_logado log ON c.id_computador = log.id_computador;
But I do this:
$query = $this->createQueryBuilder('c')
->select('c.nmComputador', 'c.teIpComputador', 'log.data', 'log.usuario')
->from('computador', 'c')
->innerJoin('log.idComputador', 'WITH', 'c.idComputador');
This happens:
[Semantical Error] line 0, col 124 near '.Computer': Error: Identification Variable log used in join path expression but was not defined before.