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

Fix argument on wrong method call

This commit is contained in:
Jan Sorgalla 2011-11-20 19:57:04 +01:00
parent 841d12e9b6
commit 4042bc53ce

View File

@ -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;