Fix argument on wrong method call
This commit is contained in:
parent
841d12e9b6
commit
4042bc53ce
@ -736,7 +736,7 @@ class ClassMetadataInfo implements ClassMetadata
|
||||
// Complete id mapping
|
||||
if (isset($mapping['id']) && $mapping['id'] === true) {
|
||||
if ($this->versionField == $mapping['fieldName']) {
|
||||
throw MappingException::cannotVersionIdField($this->name, $mapping['fieldName'], $mapping['type']);
|
||||
throw MappingException::cannotVersionIdField($this->name, $mapping['fieldName']);
|
||||
}
|
||||
|
||||
if ( ! in_array($mapping['fieldName'], $this->identifier)) {
|
||||
@ -750,7 +750,7 @@ class ClassMetadataInfo implements ClassMetadata
|
||||
|
||||
if (Type::hasType($mapping['type']) && Type::getType($mapping['type'])->canRequireSQLConversion()) {
|
||||
if (isset($mapping['id']) && $mapping['id'] === true) {
|
||||
throw MappingException::sqlConversionNotAllowedForIdentifiers($this->name, $mapping['fieldName']);
|
||||
throw MappingException::sqlConversionNotAllowedForIdentifiers($this->name, $mapping['fieldName'], $mapping['type']);
|
||||
}
|
||||
|
||||
$mapping['requireSQLConversion'] = true;
|
||||
|
Loading…
Reference in New Issue
Block a user