I'm doing this:
function Autenticar($objecto) { //require $this->db; require ROOT . "config/bootstrap.php"; return $entityManager->getRepository('models\Usuarios')->findOneBy(array('login' => $objecto->login, 'senha' => $objecto->senha)); }
It returns me this:
Class "models \ Users" is not a valid entity or mapped super class.
Does anyone have an idea of what's going on?
I've fought here and I have not gotten anything.