2
I have 3 related tables: Usuario
, Movimentacao
and Grupo
I’m using:
$usuarios = $this->Usuario->find('all',array(
'recursive' => 1,
'fields' => "Usuario.id, Usuario.nome, Usuario.email"
'order' => array('Usuario.nome ASC')
));
However, the recursive => 1
is bringing the three tables. If placed 0, returns only User. I need to return only User and Group, because, bringing Movement, the query is too slow. How do I eliminate Movement query?
It worked perfectly! Tnx!
– morphinduction