From 4ebf27de357cabbb1cba1da4791fc6ac967a5807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Cobucci?= Date: Sun, 30 Apr 2017 18:51:26 +0200 Subject: [PATCH] Use "quoted" from existing data if exists In order to keep that information for inheritance mapping. --- lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php b/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php index ce3cd8685..1af027eaf 100644 --- a/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php +++ b/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php @@ -1803,7 +1803,7 @@ class ClassMetadataInfo implements ClassMetadata if ($this->isIdentifierComposite) { throw MappingException::singleIdNotAllowedOnCompositePrimaryKey($this->name); } - + if ( ! isset($this->identifier[0])) { throw MappingException::noIdDefined($this->name); } @@ -2303,6 +2303,10 @@ class ClassMetadataInfo implements ClassMetadata $this->table['name'] = $table['name']; } + if (isset($table['quoted'])) { + $this->table['quoted'] = $table['quoted']; + } + if (isset($table['schema'])) { $this->table['schema'] = $table['schema']; }