Created
June 9, 2013 08:27
-
-
Save sseidenthal/5742805 to your computer and use it in GitHub Desktop.
Howto tell Doctrine2 in ZendFramework2 where are my Yaml or Xml Entities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'doctrine' => array( | |
'driver' => array( | |
'application_entity' => array( | |
/* Yaml Driver Example */ | |
'class' => 'Doctrine\ORM\Mapping\Driver\YamlDriver', | |
'paths' => __DIR__ . '/yml/application' | |
/* Xml Driver Example */ | |
//'class' => 'Doctrine\ORM\Mapping\Driver\XmlDriver', | |
//'paths' => __DIR__ . '/xml/application' | |
), | |
'orm_default' => array( | |
'drivers' => array( | |
'Application\Entity' => 'application_entity' | |
), | |
), | |
), | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
to generate your Entities you can use this command
vendor/bin/doctrine-module orm:generate-entities module/Application/src/