1
0
mirror of synced 2024-12-14 15:16:04 +03:00

[Mapping] removed unused local variable $field in ClassMetadataInfo class.

This commit is contained in:
Hugo Hamon 2012-01-12 19:19:59 +01:00 committed by Benjamin Eberlei
parent beae0865db
commit a3d8207578

View File

@ -838,7 +838,7 @@ class ClassMetadataInfo implements ClassMetadata
*/ */
public function validateAssocations() public function validateAssocations()
{ {
foreach ($this->associationMappings as $field => $mapping) { foreach ($this->associationMappings as $mapping) {
if ( ! \Doctrine\Common\ClassLoader::classExists($mapping['targetEntity']) ) { if ( ! \Doctrine\Common\ClassLoader::classExists($mapping['targetEntity']) ) {
throw MappingException::invalidTargetEntityClass($mapping['targetEntity'], $this->name, $mapping['fieldName']); throw MappingException::invalidTargetEntityClass($mapping['targetEntity'], $this->name, $mapping['fieldName']);
} }