diff --git a/Command/PhingCommand.php b/Command/PhingCommand.php index 21d5f36..f89dfad 100644 --- a/Command/PhingCommand.php +++ b/Command/PhingCommand.php @@ -310,7 +310,7 @@ EOT; protected function checkConfiguration() { $parameters = $this->container->get('propel.configuration')->getParameters(); - if (0 === count($parameters['datasources'])) { + if (!isset($parameters['datasources']) ||0 === count($parameters['datasources'])) { throw new \RuntimeException('Propel should be configured (no database configuration found).'); } }