Doctrine 2 - ORM

Actual classMetadata is not used when entity with DiscriminatorMap is hydrated, instead AbstractClass metaData is used.