1
0
mirror of synced 2025-01-18 14:31:40 +03:00
Bill Schaller 4b10db3a43 Fix crashes in ConvertMappingCommand and GenerateEntitiesCommand when using entities with joined table inheritance
ConvertMappingCommand and GenerateEntitiesCommand both use the DisconnectedClassMetadataFactory, which allows metadata manipulation without loading the associated classes. Commit a36bea broke these two commands by adding a bailout condition in ClassMetadataFactory::populateDiscriminatorValue which checks $metadata->reflClass->isAbstract(). If the DisconnectedClassMetadataFactory is being used, $metadata->reflClass will always be null, causing a fatal error, "Fatal error: Call to a member function isAbstract() on null".

This commit adds a check to see if $metadata->reflClass is set before checking isAbstract.
2015-03-20 13:59:27 -04:00
..
2012-05-26 14:37:00 +02:00
2013-12-16 11:05:05 -05:00
2012-12-03 09:36:08 +00:00
2013-03-11 00:08:58 +00:00
2013-11-01 22:33:59 +01:00
2012-12-03 09:36:08 +00:00
2013-04-06 14:31:27 +00:00
2013-01-29 12:14:52 -02:00
2012-05-26 14:37:00 +02:00
2012-05-26 14:37:00 +02:00
2014-07-22 10:32:31 +09:00
2012-05-26 14:37:00 +02:00
2012-05-26 14:37:00 +02:00
2012-05-26 14:37:00 +02:00
2012-05-26 14:37:00 +02:00
2012-05-26 14:37:00 +02:00
2012-05-26 14:37:00 +02:00
2012-05-26 14:37:00 +02:00
2012-05-26 14:37:00 +02:00
2012-05-26 14:37:00 +02:00
2012-05-26 14:37:00 +02:00
2012-05-26 14:37:00 +02:00