1
0
mirror of synced 2025-01-20 07:21:40 +03:00

Stoffing and including changes of doctrine/common#138

This commit is contained in:
Marco Pivetta 2012-06-10 23:52:48 +02:00
parent f6381d7b76
commit 97d7cae012

View File

@ -65,7 +65,6 @@ class ClassMetadataFactory extends AbstractClassMetadataFactory
/**
* @param EntityManager $em
* @return void
*/
public function setEntityManager(EntityManager $em)
{
@ -177,7 +176,6 @@ class ClassMetadataFactory extends AbstractClassMetadataFactory
* @param ClassMetadata $class
* @param $parent
* @throws MappingException
* @return void
*/
protected function validateRuntimeMetadata($class, $parent)
{
@ -229,7 +227,6 @@ class ClassMetadataFactory extends AbstractClassMetadataFactory
*
* @param \Doctrine\ORM\Mapping\ClassMetadata $class
* @throws MappingException
* @return void
*/
private function addDefaultDiscriminatorMap(ClassMetadata $class)
{
@ -301,7 +298,6 @@ class ClassMetadataFactory extends AbstractClassMetadataFactory
* @param \Doctrine\ORM\Mapping\ClassMetadata $subClass
* @param \Doctrine\ORM\Mapping\ClassMetadata $parentClass
* @throws MappingException
* @return void
*/
private function addInheritedRelations(ClassMetadata $subClass, ClassMetadata $parentClass)
{
@ -401,7 +397,6 @@ class ClassMetadataFactory extends AbstractClassMetadataFactory
*
* @param ClassMetadataInfo $class
* @throws ORMException
* @return void
*/
private function completeIdGeneratorMapping(ClassMetadataInfo $class)
{
@ -498,26 +493,6 @@ class ClassMetadataFactory extends AbstractClassMetadataFactory
}
}
/**
* {@inheritDoc}
*
* @todo remove after doctrine/common#138 is merged
*/
public function isTransient($class)
{
if ( ! $this->initialized) {
$this->initialize();
}
// Check for namespace alias
if (strpos($class, ':') !== false) {
list($namespaceAlias, $simpleClassName) = explode(':', $class);
$class = $this->getFqcnFromAlias($namespaceAlias, $simpleClassName);
}
return $this->driver->isTransient($class);
}
/**
* {@inheritDoc}
*/