public function testProductionEnvironment()
 {
     $app = $this->makeApp('production');
     $i = new Integrator($app);
     $i->setupDoctrine('phpMappingDriver');
     $this->assertFalse($app['doctrine.em']->getConfiguration()->getAutoGenerateProxyClasses());
 }
Exemple #2
0
function setupWithYamlMappings($app, $mappingsPath = null)
{
    $integrator = new Integrator($app);
    $integrator->setupDoctrine('yamlMappingDriver', $mappingsPath);
}