1
0
mirror of synced 2025-01-18 22:41:43 +03:00

[2.0] Fixing issue with comparing paths when they are not the realpath

This commit is contained in:
jwage 2010-03-11 14:49:44 +00:00
parent 757a9529f8
commit 13ad526833

View File

@ -239,7 +239,10 @@ class ConvertMappingTask extends AbstractTask
$em = $this->getConfiguration()->getAttribute('em');
return $em->getConnection()->getSchemaManager();
// If source is annotation then lets try and find the existing annotation
// driver for the source instead of re-creating a new instance
} else if ($type == 'annotation') {
$source = realpath($source);
$em = $this->getConfiguration()->getAttribute('em');
$metadataDriverImpl = $em->getConfiguration()->getMetadataDriverImpl();
if ($metadataDriverImpl instanceof \Doctrine\ORM\Mapping\Driver\DriverChain) {