From 98bd5cae64560aea670069833c10b22d25df2b8b Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sat, 17 Dec 2011 11:36:23 +0100 Subject: [PATCH] Revert "Incorporated setAssociationTargetClass, which solves biggest problem of modular system in ZF. Any questions, pelase forward to @EvanDotPro." This reverts commit cac9928f2853208603a75d835d20ff2a35da9326. --- lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php b/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php index 0c3a339eb..d845e6f59 100644 --- a/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php +++ b/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php @@ -1849,21 +1849,6 @@ class ClassMetadataInfo implements ClassMetadata } } - /** - * Refine an association targetEntity class pointer to be consumed through loadMetadata event. - * - * @param string $assoc - * @param string $class - */ - public function setAssociationTargetClass($assocName, $class) - { - if ( ! isset($this->associationMappings[$assocName])) { - throw new \InvalidArgumentException("Association name expected, '" . $assocName ."' is not an association."); - } - - $this->associationMappings[$assocName]['targetEntity'] = $class; - } - /** * Sets whether this class is to be versioned for optimistic locking. *