mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #314] [MERGED] Doctrine\Common metadata drivers reuse #8017
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/314
Author: @Ocramius
Created: 3/30/2012
Status: ✅ Merged
Merged: 7/4/2012
Merged by: @guilhermeblanco
Base:
master← Head:dcom-metadata-drivers-reuse📝 Commits (10+)
e6a2baeUpdating mapping driver interface to comply with Doctrine\Common\Persistence\Mapping\Driver\MappingDriver34bb0c4Reducing code duplicatione9f23d5Removing unused codebb998d1Emulating feature that has to be moved to Doctrine\Common82cfda3Fixing reflection exceptions caused by changes in the AbstractFileDriver interface03fb734Removing API that should be moved to commonccace8cMoving exception throwing for invalid file mappings to Doctrine\Common\Persistence\Mapping\Driver\FileDriverabd3ddcRemoving code duplication, reusing Doctrine\Common\Persistenc\Mapping\Driver\AnnotationDriver5b97357Removing unused imports905acf9Removing Doctrine\ORM\Mapping\Driver\Driver interface📊 Changes
25 files changed (+421 additions, -1425 deletions)
View changed files
📝
.gitignore(+1 -1)📝
UPGRADE_TO_2_3(+8 -0)📝
lib/Doctrine/ORM/Configuration.php(+4 -4)📝
lib/Doctrine/ORM/Mapping/ClassMetadata.php(+2 -17)📝
lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(+99 -364)📝
lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(+91 -80)➖
lib/Doctrine/ORM/Mapping/Driver/AbstractFileDriver.php(+0 -210)📝
lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php(+36 -203)📝
lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php(+16 -22)➖
lib/Doctrine/ORM/Mapping/Driver/Driver.php(+0 -57)📝
lib/Doctrine/ORM/Mapping/Driver/DriverChain.php(+16 -75)📝
lib/Doctrine/ORM/Mapping/Driver/PHPDriver.php(+27 -18)📝
lib/Doctrine/ORM/Mapping/Driver/SimplifiedXmlDriver.php(+8 -141)📝
lib/Doctrine/ORM/Mapping/Driver/SimplifiedYamlDriver.php(+8 -146)📝
lib/Doctrine/ORM/Mapping/Driver/StaticPHPDriver.php(+19 -9)📝
lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php(+33 -23)📝
lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php(+30 -22)📝
lib/Doctrine/ORM/Mapping/MappingException.php(+1 -6)📝
lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php(+2 -6)📝
tests/Doctrine/Tests/Mocks/MetadataDriverMock.php(+2 -2)...and 5 more files
📄 Description
This PR is strictly related with doctrine/common#98, doctrine/common#131 and doctrine/common#150 and tests won't pass until the doctrine-common submodule points to a merged version of it (will do so later, so please don't merge now ).
Basically, I just stripped any code duplicate of what already available in dcom master under Doctrine\Common\Persistence\Mapping\Driver.
Tests are OK on my environment when using the new commons submodule.
(This is a cleanup for #263, where I sadly did pull from the remote branch after rebasing)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.