Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
MappingDriverChain example
$config
->
setSchemaManagerFactory
(
new
DefaultSchemaManagerFactory
(
)
)
;
}
$config
->
setLazyGhostObjectEnabled
(
true
)
;
return
$config
;
}
public
static
function
createTestConfigurationWithXmlLoader
(
)
: Configuration
{
$config
= self::
createTestConfiguration
(
)
;
$driverChain
=
new
MappingDriverChain
(
)
;
$driverChain
->
addDriver
(
new
XmlDriver
(
new
SymfonyFileLocator
(
[
__DIR__.'/../Tests/Resources/orm' => 'Symfony\\Bridge\\Doctrine\\Tests\\Fixtures'
]
, '.orm.xml'
)
,
'.orm.xml',
true
)
,
'Symfony\\Bridge\\Doctrine\\Tests\\Fixtures'
)
;