I am trying to get ZF2 Quick Start to work with Doctrine. I thought I configured it correctly, but I get the following error. Has anyone seen this?
File: / Users / jhicks / workspace / zf 2-example / vendor / doctrine / common / lib / Doctrine / Common / Persistence / Mapping / MappingException.php: 38 Message: Class 'Album \ Entity \ Album' was not found in the chain names ZpcUser \ Entity, \ Entity, ZfcUserDoctrineORM \ Entity
Here is my Doctrine configuration:
return array( 'doctrine' => array( 'driver' => array( __NAMESPACE__ . '_driver' => array( 'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver', 'cache' => 'array', 'paths' => array(__DIR__ . '/../src/' . __NAMESPACE__ . '/Entity') ), 'orm_default' => array( 'drivers' => array( __NAMESPACE__ . '\Entity' => __NAMESPACE__ . '_driver' ) ) ), 'connection' => array( 'orm_default' => array( 'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver', 'params' => array( 'host' => 'localhost', 'port' => '3306', 'dbname' => 'zf2example', 'user' => 'user', 'password' => 'password' ), ) ) ), );
source share