Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (29 sloc) 961 Bytes
<?php
declare(strict_types=1);
use Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain;
use Doctrine\ORM\Mapping\Driver\XmlDriver;
return [
'doctrine' => [
'connection' => [
'orm_default' => [
'params' => ['url' => 'mysql://user:password@localhost/database'],
],
],
'driver' => [
'orm_default' => [
'class' => MappingDriverChain::class,
'drivers' => ['My\Entity' => 'my_entity'],
],
'my_entity' => [
'class' => XmlDriver::class,
'cache' => 'array',
'paths' => __DIR__ . '/doctrine',
],
],
],
];
/**
* switch out the user and password with the correct connection string
* note that the my_entity driver you specified is looking for entities written in xml files
* for entities written in php use the Annotation Driver (see full config)
*/
You can’t perform that action at this time.