forked from doctrine/orm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Removing old Driver interface in favor of the new one in Comm…
…on\Persistence. Also changed to use fully qualified class name for interfaces in common to avoid weird aliases." This reverts commit c988a99.
- Loading branch information
Showing
15 changed files
with
89 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,8 @@ | |
Doctrine\ORM\ORMException, | ||
Doctrine\ORM\EntityManager, | ||
Doctrine\DBAL\Platforms, | ||
Doctrine\ORM\Events; | ||
Doctrine\ORM\Events, | ||
Doctrine\Common\Persistence\Mapping\ClassMetadataFactory as ClassMetadataFactoryInterface; | ||
|
||
/** | ||
* The ClassMetadataFactory is used to create ClassMetadata objects that contain all the | ||
|
@@ -36,7 +37,7 @@ | |
* @author Jonathan Wage <[email protected]> | ||
* @author Roman Borschel <[email protected]> | ||
*/ | ||
class ClassMetadataFactory implements \Doctrine\Common\Persistence\Mapping\ClassMetadataFactory | ||
class ClassMetadataFactory implements ClassMetadataFactoryInterface | ||
{ | ||
/** | ||
* @var EntityManager | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
|
||
namespace Doctrine\ORM\Mapping; | ||
|
||
use Doctrine\Common\Persistence\Mapping\ClassMetadata; | ||
use ReflectionClass; | ||
|
||
/** | ||
|
@@ -39,7 +40,7 @@ | |
* @author Jonathan H. Wage <[email protected]> | ||
* @since 2.0 | ||
*/ | ||
class ClassMetadataInfo implements \Doctrine\Common\Persistence\Mapping\ClassMetadata | ||
class ClassMetadataInfo implements ClassMetadata | ||
{ | ||
/* The inheritance mapping types */ | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php | ||
/* | ||
* $Id$ | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
* | ||
* This software consists of voluntary contributions made by many individuals | ||
* and is licensed under the LGPL. For more information, see | ||
* <http://www.doctrine-project.org>. | ||
*/ | ||
|
||
namespace Doctrine\ORM\Mapping\Driver; | ||
|
||
use Doctrine\ORM\Mapping\ClassMetadataInfo; | ||
|
||
/** | ||
* Contract for metadata drivers. | ||
* | ||
* @since 2.0 | ||
* @author Jonathan H. Wage <[email protected]> | ||
* @todo Rename: MetadataDriver or MappingDriver | ||
*/ | ||
interface Driver | ||
{ | ||
/** | ||
* Loads the metadata for the specified class into the provided container. | ||
* | ||
* @param string $className | ||
* @param ClassMetadataInfo $metadata | ||
*/ | ||
function loadMetadataForClass($className, ClassMetadataInfo $metadata); | ||
|
||
/** | ||
* Gets the names of all mapped classes known to this driver. | ||
* | ||
* @return array The names of all mapped classes known to this driver. | ||
*/ | ||
function getAllClassNames(); | ||
|
||
/** | ||
* Whether the class with the specified name should have its metadata loaded. | ||
* This is only the case if it is either mapped as an Entity or a | ||
* MappedSuperclass. | ||
* | ||
* @param string $className | ||
* @return boolean | ||
*/ | ||
function isTransient($className); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule doctrine-common
updated
1 files
+0 −56 | lib/Doctrine/Common/Persistence/Mapping/Driver.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters