Merge pull request #737 from Koc/fix-schema-validator-master
Skip not mapped public properties in SchemaValidator
This commit is contained in:
commit
95af021ed9
@ -241,6 +241,11 @@ class SchemaValidator
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( ! isset($class->fieldMappings[$publicAttr->getName()]) &&
|
||||||
|
! isset($class->associationMappings[$publicAttr->getName()])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$ce[] = "Field '".$publicAttr->getName()."' in class '".$class->name."' must be private ".
|
$ce[] = "Field '".$publicAttr->getName()."' in class '".$class->name."' must be private ".
|
||||||
"or protected. Public fields may break lazy-loading.";
|
"or protected. Public fields may break lazy-loading.";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user