I've upgraded to Doctrine 2 in my Zend application. I have the following code in a controller:
// get instance of entity manager
$em = $this->_helper->Em();
// get instance of query builder
$qb = $em->createQueryBuilder();
$qb->select('g')
->from('Groups', 'g');
$query = $qb->getQuery();
$aGroups = $query->getResult();
However it throws the error: Message:[Semantical Error] line 0, col 14 near 'Groups g': Error: Class 'Groups' is not defined.
The entities are in application/models/Entities/
Appreciate the help.