Skip to content

Instantly share code, notes, and snippets.

@sseidenthal
Created June 9, 2013 08:27
Show Gist options
  • Save sseidenthal/5742805 to your computer and use it in GitHub Desktop.
Save sseidenthal/5742805 to your computer and use it in GitHub Desktop.
Howto tell Doctrine2 in ZendFramework2 where are my Yaml or Xml Entities
'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'
),
),
),
),
@sseidenthal
Copy link
Author

to generate your Entities you can use this command

vendor/bin/doctrine-module orm:generate-entities module/Application/src/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment