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, recursive => 1
is bringing all three tables together. If it is 0, it returns only User. I need to return only User and Group, because, bringing Movement, the query is too slow. How do I remove Movimetacao from the query?