fix undefined $container when building models
This commit is contained in:
parent
2b3e2f0b3f
commit
37fcc0132f
1 changed files with 1 additions and 1 deletions
|
|
@ -330,7 +330,7 @@ EOT;
|
|||
*/
|
||||
protected function checkConfiguration()
|
||||
{
|
||||
$parameters = $this->container->get('propel.configuration')->getParameters();
|
||||
$parameters = $this->getContainer()->get('propel.configuration')->getParameters();
|
||||
|
||||
if (!isset($parameters['datasources']) || 0 === count($parameters['datasources'])) {
|
||||
throw new \RuntimeException('Propel should be configured (no database configuration found).');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue