1
0
mirror of synced 2024-12-04 18:56:06 +03:00
doctrine2/lib/Doctrine/ORM/Mapping
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
..
Builder [DDC-3461] Renamed AssocationBuilder::isPrimaryKey() to makePrimaryKey(). Same for FieldBuilder and depreceating isPrimaryKey(). Adjust tests. Revert change in ClassMetadataInfo and fix bug. 2015-03-18 17:06:30 +01:00
Driver #881 DDC-2825 - refactoring mapping driver to use ClassMetadata#setPrimaryTable() instead of duplicating explode() logic 2015-01-14 18:12:12 +01:00
Reflection #1272 DDC-2704 - property getter utility is package private 2015-01-24 14:29:40 +01:00
Annotation.php LGPL => MIT 2012-05-26 14:37:00 +02:00
AnsiQuoteStrategy.php Prefixing alias counter with _ to fix DDC-3042 and prevent collisions 2014-04-04 03:05:48 +02:00
AssociationOverride.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
AssociationOverrides.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
AttributeOverride.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
AttributeOverrides.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
Cache.php Fix docs 2013-12-16 11:05:05 -05:00
ChangeTrackingPolicy.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
ClassMetadata.php Reusing chained driver now available in common, fixing cs/code smells and removing duplicate docs. 2012-07-04 20:59:22 +02:00
ClassMetadataFactory.php Fix crashes in ConvertMappingCommand and GenerateEntitiesCommand when using entities with joined table inheritance 2015-03-20 13:59:27 -04:00
ClassMetadataInfo.php [DDC-3461] Renamed AssocationBuilder::isPrimaryKey() to makePrimaryKey(). Same for FieldBuilder and depreceating isPrimaryKey(). Adjust tests. Revert change in ClassMetadataInfo and fix bug. 2015-03-18 17:06:30 +01:00
Column.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
ColumnResult.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
CustomIdGenerator.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
DefaultEntityListenerResolver.php Fixed typos 2013-03-11 00:08:58 +00:00
DefaultNamingStrategy.php Include className in calls to NamingStrategy joinColumnName method. 2015-01-17 23:57:52 +01:00
DefaultQuoteStrategy.php #1316 - removing useless null check (redundant with isset()), cs cleanups 2015-03-17 23:16:16 +00:00
DiscriminatorColumn.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
DiscriminatorMap.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
Embeddable.php fixes annotation context 2013-11-01 22:33:59 +01:00
Embedded.php columnPrefix must support string and boolean, so changing to mixed 2014-03-14 12:29:01 +01:00
Entity.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
EntityListenerResolver.php Fixed typos 2013-04-06 14:31:27 +00:00
EntityListeners.php remove @LifecycleCallback 2013-01-29 12:14:52 -02:00
EntityResult.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
FieldResult.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
GeneratedValue.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
HasLifecycleCallbacks.php LGPL => MIT 2012-05-26 14:37:00 +02:00
Id.php LGPL => MIT 2012-05-26 14:37:00 +02:00
Index.php Refactor partial into options array 2014-07-22 10:32:31 +09:00
InheritanceType.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
JoinColumn.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
JoinColumns.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
JoinTable.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
ManyToMany.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
ManyToOne.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
MappedSuperclass.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
MappingException.php [Embeddables] Improved exception message when embeddables is missing 'class' attribute. 2015-01-16 19:18:46 +01:00
NamedNativeQueries.php LGPL => MIT 2012-05-26 14:37:00 +02:00
NamedNativeQuery.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
NamedQueries.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
NamedQuery.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
NamingStrategy.php #1252 DDC-3496 - reverting interface BC break 2015-01-18 00:11:47 +01:00
OneToMany.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
OneToOne.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
OrderBy.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
PostLoad.php LGPL => MIT 2012-05-26 14:37:00 +02:00
PostPersist.php LGPL => MIT 2012-05-26 14:37:00 +02:00
PostRemove.php LGPL => MIT 2012-05-26 14:37:00 +02:00
PostUpdate.php LGPL => MIT 2012-05-26 14:37:00 +02:00
PreFlush.php LGPL => MIT 2012-05-26 14:37:00 +02:00
PrePersist.php LGPL => MIT 2012-05-26 14:37:00 +02:00
PreRemove.php LGPL => MIT 2012-05-26 14:37:00 +02:00
PreUpdate.php LGPL => MIT 2012-05-26 14:37:00 +02:00
QuoteStrategy.php Cleaned up further unused imports. 2014-02-09 23:45:22 +00:00
ReflectionEmbeddedProperty.php #1213 - DDC-3437 - renaming variables/alignment/clarifications in docblocks 2014-12-08 01:22:20 +01:00
SequenceGenerator.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
SqlResultSetMapping.php Fixed documentation for ORM\Mapping 2012-12-03 09:36:08 +00:00
SqlResultSetMappings.php LGPL => MIT 2012-05-26 14:37:00 +02:00
Table.php Initialize table options annotation, fixed condition in AnnotationDriver 2014-03-23 14:37:55 +01:00
UnderscoreNamingStrategy.php Include className in calls to NamingStrategy joinColumnName method. 2015-01-17 23:57:52 +01:00
UniqueConstraint.php Refactor partial into options array 2014-07-22 10:32:31 +09:00
Version.php LGPL => MIT 2012-05-26 14:37:00 +02:00