에서 교리 파일 매핑 드라이버를 구성하는 방법이 오류가 있습니다ZF2
Fatal error: Uncaught exception 'Doctrine\Common\Persistence\Mapping\MappingException' with message 'File mapping drivers must have a valid directory path, however the given path [path/to/my/entities] seems to be incorrect
를하고 난 내 module.config.php이 있습니다
'doctrine' => array(
'driver' => array(
// defines an annotation driver with two paths, and names it `my_annotation_driver`
'my_annotation_driver' => array(
'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
'cache' => 'array',
'paths' => array(
__DIR__ . '/../src/Realez/Entity',
'another/path'
),
),
// default metadata driver, aggregates all other drivers into a single one.
// Override `orm_default` only if you know what you're doing
'orm_default' => array(
'drivers' => array(
// register `my_annotation_driver` for any entity under namespace `My\Namespace`
'Realez/Entity' => 'my_annotation_driver'
)
)
)
)
이 내 module.config.php 파일이 무엇인지 정확히 내가 여전히 같은 오류로 받고 있어요 OP – Scott
나 같은 일. 어떻게 문제를 해결 했습니까? –
이것은 나를 위해 일했습니다. 감사. –