From 832127a0d6fe3a1bc4aae3aafcdc249ef00946f4 Mon Sep 17 00:00:00 2001 From: Klein Thomas Date: Tue, 11 Mar 2014 09:54:46 +0100 Subject: [PATCH] Added info about automatic discriminator map see https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php#L257 --- docs/en/reference/inheritance-mapping.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/en/reference/inheritance-mapping.rst b/docs/en/reference/inheritance-mapping.rst index f44c0b5f1..dc35ab29d 100644 --- a/docs/en/reference/inheritance-mapping.rst +++ b/docs/en/reference/inheritance-mapping.rst @@ -123,6 +123,9 @@ Things to note: be fully qualified if the classes are contained in the same namespace as the entity class on which the discriminator map is applied. +- If no discriminator map is provided, then the map is generated + automatically. The automatically generated discriminator map + contains the lowercase short name of each class as key. Design-time considerations ~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -210,6 +213,9 @@ Things to note: be fully qualified if the classes are contained in the same namespace as the entity class on which the discriminator map is applied. +- If no discriminator map is provided, then the map is generated + automatically. The automatically generated discriminator map + contains the lowercase short name of each class as key. .. note::