Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/08/2013, 10:07
minimal
 
Fecha de Ingreso: diciembre-2011
Mensajes: 408
Antigüedad: 12 años, 3 meses
Puntos: 18
como implementar doctrine fixtures module zend framework

hola alguno ha implementado este modulo para hacer fixtures con doctrine y zend


https://github.com/Hounddog/DoctrineDataFixtureModule

lo que no me queda claro es donde va la opcion para que me cargue los fixtures
aca mi configuracion por modulo
Código PHP:
Ver original
  1. 'doctrine' => array(
  2.         'eventmanager' => array(
  3.             'orm_default' => array(
  4.                 'subscribers' => array(
  5.                    
  6.                     'Gedmo\Tree\TreeListener',
  7.                     'Gedmo\Timestampable\TimestampableListener',
  8.                     'Gedmo\Sluggable\SluggableListener',
  9.                     'Gedmo\Loggable\LoggableListener',
  10.                     'Gedmo\Sortable\SortableListener'
  11.                 ),
  12.             ),
  13.         ),
  14.          'driver' => array(
  15.              
  16.               __NAMESPACE__.'_driver' => array(
  17.               'class' =>'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
  18.               'cache' => 'array',
  19.               'paths' => array(
  20.                 __DIR__ . '/../src/'.__NAMESPACE__.'/Entity',
  21.              
  22.                 )
  23.               'data-fixture' => array(
  24.                  __NAMESPACE__.'_fixture' =>  __DIR__ . '/../src/'.__NAMESPACE__.'/Fixtures',
  25.               ),
  26.             ),
  27.            
  28.             'translatable_metadata_driver' => array(
  29.                 'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
  30.                 'cache' => 'array',
  31.                 'paths' => array(
  32.                     'vendor/gedmo/doctrine-extensions/lib/Gedmo/Translatable/Entity',
  33.                 ),
  34.             ),
  35.             'orm_default' => array(
  36.               'drivers' => array(
  37.                 __NAMESPACE__.'\Entity' => __NAMESPACE__.'_driver',
  38.               //  'Gedmo\Translatable\Entity' => 'translatable_metadata_driver',
  39.               )
  40.             ),
  41.         )
  42.   ),

segun dice

To register drivers with Doctrine module simply add the drivers to the doctrine.driver key in your configuration.

pero no se a que key se refiere