Skip to content

Commit

Permalink
[Tools] removed unused local variable $assocName in ResolveTargetEnti…
Browse files Browse the repository at this point in the history
…tyListener class.
  • Loading branch information
Hugo Hamon authored and beberlei committed Mar 24, 2012
1 parent ffa372a commit c0620bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Tools/ResolveTargetEntityListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function addResolveTargetEntity($originalEntity, $newEntity, array $mappi
public function loadClassMetadata(LoadClassMetadataEventArgs $args)
{
$cm = $args->getClassMetadata();
foreach ($cm->associationMappings as $assocName => $mapping) {
foreach ($cm->associationMappings as $mapping) {
if (isset($this->resolveTargetEntities[$mapping['targetEntity']])) {
$this->remapAssociation($cm, $mapping);
}
Expand Down

0 comments on commit c0620bf

Please sign in to comment.