1
0
mirror of synced 2024-12-14 07:06:04 +03:00

[Mapping] removed unused local variable $fieldName in ClassMetadataFactory class.

This commit is contained in:
Hugo Hamon 2012-01-12 19:18:57 +01:00 committed by Benjamin Eberlei
parent 29318e183c
commit beae0865db

View File

@ -406,7 +406,7 @@ class ClassMetadataFactory implements ClassMetadataFactoryInterface
*/
private function addInheritedFields(ClassMetadata $subClass, ClassMetadata $parentClass)
{
foreach ($parentClass->fieldMappings as $fieldName => $mapping) {
foreach ($parentClass->fieldMappings as $mapping) {
if ( ! isset($mapping['inherited']) && ! $parentClass->isMappedSuperclass) {
$mapping['inherited'] = $parentClass->name;
}