Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix argument on wrong method call

  • Loading branch information...
commit 4042bc53ce9c98124d24a652b1ef5c5a311296b9 1 parent 841d12e
Jan Sorgalla jsor authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php
4 lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php
@@ -736,7 +736,7 @@ protected function _validateAndCompleteFieldMapping(array &$mapping)
736 736 // Complete id mapping
737 737 if (isset($mapping['id']) && $mapping['id'] === true) {
738 738 if ($this->versionField == $mapping['fieldName']) {
739   - throw MappingException::cannotVersionIdField($this->name, $mapping['fieldName'], $mapping['type']);
  739 + throw MappingException::cannotVersionIdField($this->name, $mapping['fieldName']);
740 740 }
741 741
742 742 if ( ! in_array($mapping['fieldName'], $this->identifier)) {
@@ -750,7 +750,7 @@ protected function _validateAndCompleteFieldMapping(array &$mapping)
750 750
751 751 if (Type::hasType($mapping['type']) && Type::getType($mapping['type'])->canRequireSQLConversion()) {
752 752 if (isset($mapping['id']) && $mapping['id'] === true) {
753   - throw MappingException::sqlConversionNotAllowedForIdentifiers($this->name, $mapping['fieldName']);
  753 + throw MappingException::sqlConversionNotAllowedForIdentifiers($this->name, $mapping['fieldName'], $mapping['type']);
754 754 }
755 755
756 756 $mapping['requireSQLConversion'] = true;

0 comments on commit 4042bc5

Please sign in to comment.
Something went wrong with that request. Please try again.