From 37fcc0132f832aeff42791afbf2de53da8a70cab Mon Sep 17 00:00:00 2001 From: nibsirahsieu Date: Tue, 2 Aug 2011 23:58:20 +0700 Subject: [PATCH] fix undefined $container when building models --- Command/PhingCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Command/PhingCommand.php b/Command/PhingCommand.php index 2113c84..2930cf3 100644 --- a/Command/PhingCommand.php +++ b/Command/PhingCommand.php @@ -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).');