Hello!
I'm trying to execute a SQL query:
$query = $this->modelsManager->createQuery('SELECT Usuarios.xid, Usuarios.email, UsuariosInfo.num_doc FROM Usuarios, UsuariosInfo');
$users = $query->execute();
$this->view->usrs = new StdClass;
$this->view->usrs = $users;
But I got this error:
Column 'num_doc' doesn't belong to the model or alias 'UsuariosInfo', when executing: SELECT Usuarios.xid, Usuarios.email, UsuariosInfo.num_doc FROM Usuarios, UsuariosInfo
I have tried CamelCase:
$query = $this->modelsManager->createQuery('SELECT Usuarios.xid, Usuarios.email, UsuariosInfo.NumDoc FROM Usuarios, UsuariosInfo');
But it doesn't work. What am I am doing wrong?