Answer the question
In order to leave comments, you need to log in
Silex DoctrineExtension - extension is not connected
I'm interested in the framework, though so far the impressions are getting worse and worse ... But it's still interesting.
When implementing a mini-project, there was a desire to use doctrine-dbal, which is actually the problem. When you connect the extension, it spits an error that there is no such thing. I checked everything already (although I think there is an error and it is stupid as always)
The doctrine-dbal 2.0.6 package was downloaded from which the Doctrine/Common and Doctrine/DBAL folders were moved to vendors and renamed. Since I am dealing with the framework for the first time, I ask for help from knowledgeable people.
$app->register(new Silex\Extension\DoctrineExtension(), array(
'db.options' => array(
'driver' => 'pdo_mysql',
'dbname' => 'shop',
'host' => 'localhost',
'user' => 'root',
'password' => ''
),
'db.dbal.class_path' => __DIR__.'/vendor/doctrine-dbal',
'db.common.class_path' => __DIR__.'/vendor/doctrine-common',
));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question