Avoid php notice if the database configuration was not provided
This commit is contained in:
parent
22c64d4dd5
commit
ad23a1f7d7
1 changed files with 1 additions and 1 deletions
|
|
@ -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).');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue