1
0
mirror of synced 2025-01-18 22:41:43 +03:00

[Tools] removed unused local variable $assocName in ResolveTargetEntityListener class.

This commit is contained in:
Hugo Hamon 2012-01-12 20:07:10 +01:00 committed by Benjamin Eberlei
parent ffa372a76c
commit c0620bf857

View File

@ -61,7 +61,7 @@ class ResolveTargetEntityListener
public function loadClassMetadata(LoadClassMetadataEventArgs $args) public function loadClassMetadata(LoadClassMetadataEventArgs $args)
{ {
$cm = $args->getClassMetadata(); $cm = $args->getClassMetadata();
foreach ($cm->associationMappings as $assocName => $mapping) { foreach ($cm->associationMappings as $mapping) {
if (isset($this->resolveTargetEntities[$mapping['targetEntity']])) { if (isset($this->resolveTargetEntities[$mapping['targetEntity']])) {
$this->remapAssociation($cm, $mapping); $this->remapAssociation($cm, $mapping);
} }