Identifier can be empty for MappedSuperclasses
When MappedSuperclass is inspected without identifier column been assigned, always return false. Solves "Undefined offset" notice.
This commit is contained in:
parent
2089df36e3
commit
a75d73b889
@ -1031,6 +1031,9 @@ class ClassMetadataInfo implements ClassMetadata
|
||||
*/
|
||||
public function isIdentifier($fieldName)
|
||||
{
|
||||
if (0 == count($this->identifier)) {
|
||||
return false;
|
||||
}
|
||||
if ( ! $this->isIdentifierComposite) {
|
||||
return $fieldName === $this->identifier[0];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user