fix undefined $container when building models

This commit is contained in:
nibsirahsieu 2011-08-02 23:58:20 +07:00
commit 37fcc0132f

View file

@ -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).');