Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

[ORM] Revert change realized in #33 #45

Open
wants to merge 1 commit into from

1 participant

@Maks3w

Doctrine ORM Drivers are not implementing Doctrine\Common\Persistence\Mapping\Driver\MappingDriver interface yet.

This was giving a lot of problems

Catchable fatal error: Argument 1 passed to Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain::addDriver() must implement interface Doctrine\Common\Persistence\Mapping\Driver\MappingDriver, instance of Doctrine\ORM\Mapping\Driver\AnnotationDriver given, called in /vagrant/library/Bisna/Doctrine/Container.php on line 987 and defined in /vagrant/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/MappingDriverChain.php on line 49

@Maks3w Maks3w [ORM] Revert change realized in #33
Doctrine ORM Drivers are not implementing Doctrine\Common\Persistence\Mapping\Driver\MappingDriver interface yet.
46ccd41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 6, 2012
  1. @Maks3w

    [ORM] Revert change realized in #33

    Maks3w authored
    Doctrine ORM Drivers are not implementing Doctrine\Common\Persistence\Mapping\Driver\MappingDriver interface yet.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  library/Bisna/Doctrine/Container.php
View
2  library/Bisna/Doctrine/Container.php
@@ -926,7 +926,7 @@ private function startODMMetadata(array $config = array())
*/
private function startORMMetadata(array $config = array())
{
- $metadataDriver = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
+ $metadataDriver = new \Doctrine\ORM\Mapping\Driver\DriverChain();
// Default metadata driver configuration
$defaultMetadataDriver = array(
Something went wrong with that request. Please try again.