1
0
mirror of synced 2024-12-13 14:56:01 +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()
{
foreach ($this->associationMappings as $field => $mapping) {
foreach ($this->associationMappings as $mapping) {
if ( ! \Doctrine\Common\ClassLoader::classExists($mapping['targetEntity']) ) {
throw MappingException::invalidTargetEntityClass($mapping['targetEntity'], $this->name, $mapping['fieldName']);
}