Doctrine2 ORM storage adapter for ZfcUser.
BSD 3-Clause "New" or "Revised" License
89
stars
92
forks
source link
No identifier/primary key specified for Entity 'ZfcUserDoctrineORM\Entity\User'. Every Entity must have an identifier/primary key. #18
Closed
ghost closed 12 years ago
Hi there, Here is my stack trace:
0 vendor\doctrine\orm\lib\Doctrine\ORM\Mapping\ClassMetadataInfo.php(787): Doctrine\ORM\Mapping\MappingException::identifierRequired('ZfcUserDoctrine...')
1 vendor\doctrine\orm\lib\Doctrine\ORM\Mapping\ClassMetadataFactory.php(367): Doctrine\ORM\Mapping\ClassMetadataInfo->validateIdentifier()
2 vendor\doctrine\orm\lib\Doctrine\ORM\Mapping\ClassMetadataFactory.php(337): Doctrine\ORM\Mapping\ClassMetadataFactory->validateRuntimeMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata), NULL)
3 vendor\doctrine\orm\lib\Doctrine\ORM\Mapping\ClassMetadataFactory.php(178): Doctrine\ORM\Mapping\ClassMetadataFactory->loadMetadata('ZfcUserDoctrine...')
4 vendor\doctrine\orm\lib\Doctrine\ORM\EntityManager.php(269): Doctrine\ORM\Mapping\ClassMetadataFactory->getMetadataFor('ZfcUserDoctrine...')
5 vendor\doctrine\orm\lib\Doctrine\ORM\EntityManager.php(613): Doctrine\ORM\EntityManager->getClassMetadata('ZfcUserDoctrine...')
6 vendor\zf-commons\zfc-user-doctrine-orm\src\ZfcUserDoctrineORM\Repository\User.php(13): Doctrine\ORM\EntityManager->getRepository('ZfcUserDoctrine...')
7 vendor\zf-commons\zfc-user\src\ZfcUser\Authentication\Adapter\Db.php(61): ZfcUserDoctrineORM\Repository\User->findByEmail('m01@m01.com')
8 [internal function]: ZfcUser\Authentication\Adapter\Db->authenticate(Object(ZfcUser\Authentication\Adapter\AdapterChainEvent))
9 vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(465): call_user_func(Array, Object(ZfcUser\Authentication\Adapter\AdapterChainEvent))
10 vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('authenticate', Object(ZfcUser\Authentication\Adapter\AdapterChainEvent), Object(Closure))
11 vendor\zf-commons\zfc-user\src\ZfcUser\Authentication\Adapter\AdapterChain.php(48): Zend\EventManager\EventManager->trigger('authenticate', Object(ZfcUser\Authentication\Adapter\AdapterChainEvent), Object(Closure))
12 vendor\zf-commons\zfc-user\src\ZfcUser\Controller\UserController.php(106): ZfcUser\Authentication\Adapter\AdapterChain->prepareForAuthentication(Object(Zend\Http\PhpEnvironment\Request))
13 vendor\zendframework\zendframework\library\Zend\Mvc\Controller\ActionController.php(153): ZfcUser\Controller\UserController->authenticateAction()
14 [internal function]: Zend\Mvc\Controller\ActionController->execute(Object(Zend\Mvc\MvcEvent))
15 vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(465): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
16 vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
17 vendor\zendframework\zendframework\library\Zend\Mvc\Controller\ActionController.php(120): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
18 vendor\zendframework\zendframework\library\Zend\Mvc\Controller\Plugin\Forward.php(102): Zend\Mvc\Controller\ActionController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
19 vendor\zf-commons\zfc-user\src\ZfcUser\Controller\UserController.php(82): Zend\Mvc\Controller\Plugin\Forward->dispatch('zfcuser', Array)
20 vendor\zendframework\zendframework\library\Zend\Mvc\Controller\ActionController.php(153): ZfcUser\Controller\UserController->loginAction()
21 [internal function]: Zend\Mvc\Controller\ActionController->execute(Object(Zend\Mvc\MvcEvent))
22 vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(465): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
23 vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
24 vendor\zendframework\zendframework\library\Zend\Mvc\Controller\ActionController.php(120): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
25 vendor\zendframework\zendframework\library\Zend\Mvc\DispatchListener.php(157): Zend\Mvc\Controller\ActionController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
26 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
27 vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(465): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
28 vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
29 vendor\zendframework\zendframework\library\Zend\Mvc\Application.php(289): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
30 public\index.php(46): Zend\Mvc\Application->run()
31 {main}