Skip to content

Commit

Permalink
Forgive me Lord, 'cos I have sinned :'(
Browse files Browse the repository at this point in the history
  • Loading branch information
vilartoni committed Jul 6, 2016
1 parent 5761d07 commit 33b41e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions composer.json
@@ -1,8 +1,8 @@
{
"name": "doctrine/orm",
"name": "emagister/doctrine-orm",
"type": "library",
"description": "Object-Relational-Mapper for PHP",
"keywords": ["orm", "database"],
"keywords": ["emagister", "orm", "database"],
"homepage": "http://www.doctrine-project.org",
"license": "MIT",
"authors": [
Expand Down
4 changes: 0 additions & 4 deletions lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php
Expand Up @@ -1435,10 +1435,6 @@ protected function _validateAndCompleteFieldMapping(array &$mapping)
}

if (Type::hasType($mapping['type']) && Type::getType($mapping['type'])->canRequireSQLConversion()) {
if (isset($mapping['id']) && $mapping['id'] === true) {
throw MappingException::sqlConversionNotAllowedForIdentifiers($this->name, $mapping['fieldName'], $mapping['type']);
}

$mapping['requireSQLConversion'] = true;
}
}
Expand Down

0 comments on commit 33b41e4

Please sign in to comment.