Problems with doctrine |
Hi,
i want doctrine give a try. In my controller there is the following code: $em = $this->doctrine->em; $users = $em->createQuery('SELECT u FROM User u')->getResult(); The User-Class is in models/Entities, but i get this error: Message: [Semantical Error] line 0, col 14 near 'User u': Error: Class 'User' is not defined. I tried instead of FROM User FROM models\Entites\User but this does not work. Can anybody help?
|
Welcome Guest, Not a member yet? Register Sign In |