1
0
mirror of synced 2024-12-13 14:56:01 +03:00

Revert "Incorporated setAssociationTargetClass, which solves biggest problem of modular system in ZF. Any questions, pelase forward to @EvanDotPro."

This reverts commit cac9928f28.
This commit is contained in:
Benjamin Eberlei 2011-12-17 11:36:23 +01:00
parent cac9928f28
commit 98bd5cae64

View File

@ -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.
*