Doctrine orm Zend Doctrine RuntimeReflectionService类不存在

Doctrine orm Zend Doctrine RuntimeReflectionService类不存在,doctrine-orm,zend-framework2,Doctrine Orm,Zend Framework2,我按指示去做 但是指令$hydrator=newdoctrinehydrator($objectManager)不起作用: 反射激发 文件:/Users/joseribeiro/Sites/zendoct2/vendor/doctor/common/lib/doctor/common/Persistence/Mapping/RuntimeReflectionService.php:73 消息:类不存在。 控制器: namespace Product\Controller; use Doctri

我按指示去做 但是指令
$hydrator=newdoctrinehydrator($objectManager)不起作用:

反射激发 文件:
/Users/joseribeiro/Sites/zendoct2/vendor/doctor/common/lib/doctor/common/Persistence/Mapping/RuntimeReflectionService.php:73

消息:
类不存在。

控制器:

namespace Product\Controller;

use DoctrineORMModule\Paginator\Adapter\DoctrinePaginator as DoctrineAdapter;
use DoctrineModule\Stdlib\Hydrator\DoctrineObject as DoctrineHydrator;
...

public function editAction()
{
    $objectManager = $this->getServiceLocator()->get('Doctrine\ORM\EntityManager');

    $hydrator = new DoctrineHydrator( $objectManager );
    ...
}
My module.config.php

'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'
          )
     )
  )
)
错误日志:

[Tue Aug 27 12:56:27 2013] [error] [client 127.0.0.1] PHP Warning:  Missing argument 2 for DoctrineModule\\Stdlib\\Hydrator\\DoctrineObject::__construct(), called in   .../module/Product/src/Product/Controller/ProductController.php on line 90 and defined in .../vendor/doctrine/doctrine-module/src/DoctrineModule/Stdlib/Hydrator/DoctrineObject.php on line 71
[Tue Aug 27 12:56:27 2013] [error] [client 127.0.0.1] PHP Notice:  Undefined variable: targetClass in .../vendor/doctrine/doctrine-module/src/DoctrineModule/Stdlib/Hydrator/DoctrineObject.php on line 76
[Tue Aug 27 12:56:27 2013] [error] [client 127.0.0.1] PHP Warning:  class_parents(): object or string expected in /Users/joseribeiro/Sites/zendoct2/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/RuntimeReflectionService.php on line 40
[Tue Aug 27 12:56:27 2013] [error] [client 127.0.0.1] PHP Warning:  array_reverse() expects parameter 1 to be array, boolean given in .../vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php on line 257
[Tue Aug 27 12:56:27 2013] [error] [client 127.0.0.1] PHP Warning:  Invalid argument supplied for foreach() in .../vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php on line 257

我不明白怎么了

我确实更改了
$hydrator=新的DoctrineHydrator($objectManager)
$hydrator=新DoctrineHydrator($objectManager,“产品\实体\产品”)与描述不同。我不知道为什么!文档是针对1.0.x分支的,您可能正在使用0.*。这是你版本的文档