Closed danicomas closed 9 years ago
Solved!
$app->register(new Silex\Provider\DoctrineServiceProvider(), array(
'dbs.options' => array(
'db' => array(
'driver' => 'pdo_mysql',
'dbname' => 'mydbname',
'host' => 'iphost',
'user' => 'user',
'password' => 'password',
'charset' => 'utf8',
),
)
));
$app->register(new Dflydev\Silex\Provider\DoctrineOrm\DoctrineOrmServiceProvider, array(
"orm.em.options" => array(
"mappings" => array(
array(
"type" => "annotation",
"namespace" => "Entities",
"path" => __DIR__.'/../Entities',
)
),
),
));
$app['orm.ems.default'] = 'mysql';
$app['orm.ems.options'] = array(
'mysql' => array(
'connection' => 'db',
'mappings' => $app['orm.em.options']['mappings']
),
);
I have this @simensen @dominikzogg @straccio:
And it always crash!