Affects Version/s: 2.3.4
Fix Version/s: None
Security Level: All
By using the concept of mapperSuperClasses and entity classes to enable inheritance features, the proxy classes are being auto generated as expected. If i switch to production mode and try to generate all classes manually by calling the orm:generate-proxies command, the mappedSuperClasses wont be auto generated, since this type is explicitely excluded in the skipClass method.
In my opinion it is viable that the user can access either the mappedSuperClass (e.g. during a dql statement) directly or the entity class. Therefore i propose to change the skipClass method (AbstractProxyFactory.php) as shown below.
protected function skipClass(ClassMetadata $metadata)
/* @var $metadata \Doctrine\ORM\Mapping\ClassMetadataInfo */
If this is not as intended, this should be at least made configureable during the orm:generate-proxies command call.