Commit f6d17b79 authored by guilhermeblanco's avatar guilhermeblanco

[2.0][DDC-286][DDC-287] Fixed missing method and casting. Thanks Hannes for reporting and patch.

parent 1e135d95
......@@ -127,4 +127,10 @@ class MappingException extends \Doctrine\ORM\ORMException
return new self('The column ' . $joinColumn . ' must be mapped to a field in class '
. $className . ' since it is referenced by a join column of another class.');
}
public static function annotationDriverRequiresConfiguredDirectoryPath()
{
return new self('The annotation driver needs to have a directory path');
}
}
\ No newline at end of file
......@@ -145,7 +145,7 @@ class SchemaToolTask extends AbstractTask
if ($metadataDriver instanceof \Doctrine\ORM\Mapping\Driver\AnnotationDriver) {
if (isset($arguments['class-dir'])) {
$metadataDriver->addPaths($arguments['class-dir']);
$metadataDriver->addPaths((array) $arguments['class-dir']);
} else {
throw new CliException(
'The supplied configuration uses the annotation metadata driver. ' .
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment