[2.0][DDC-286][DDC-287] Fixed missing method and casting. Thanks Hannes for reporting and patch.
This commit is contained in:
parent
1e135d951e
commit
f6d17b79d8
2 changed files with 7 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
|
||||
}
|
|
@ -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. ' .
|
||||
|
|
Loading…
Add table
Reference in a new issue