1
0
mirror of synced 2025-01-05 16:53:21 +03:00

Merge pull request #69 from keymaster/patch-1

Clarify the performance warning.
This commit is contained in:
Guilherme Blanco 2011-12-21 06:56:17 -08:00
commit d23b3bb056

View File

@ -140,10 +140,10 @@ relationships involving types that employ this mapping strategy are
very performant. very performant.
There is a general performance consideration with Single Table There is a general performance consideration with Single Table
Inheritance: If you use a STI entity as a many-to-one or one-to-one Inheritance: If the target-entity of a many-to-one or one-to-one
entity you should never use one of the classes at the upper levels association is an STI entity, it is preferable for performance reasons that it
of the inheritance hierachy as "targetEntity", only those that have be a leaf entity in the inheritance heirarchy, (ie. have no subclasses).
no subclasses. Otherwise Doctrine *CANNOT* create proxy instances Otherwise Doctrine *CANNOT* create proxy instances
of this entity and will *ALWAYS* load the entity eagerly. of this entity and will *ALWAYS* load the entity eagerly.
SQL Schema considerations SQL Schema considerations
@ -243,10 +243,10 @@ themselves on access of any subtype fields, so accessing fields of
subtypes after such a query is not safe. subtypes after such a query is not safe.
There is a general performance consideration with Class Table There is a general performance consideration with Class Table
Inheritance: If you use a CTI entity as a many-to-one or one-to-one Inheritance: If the target-entity of a many-to-one or one-to-one
entity you should never use one of the classes at the upper levels association is a CTI entity, it is preferable for performance reasons that it
of the inheritance hierachy as "targetEntity", only those that have be a leaf entity in the inheritance heirarchy, (ie. have no subclasses).
no subclasses. Otherwise Doctrine *CANNOT* create proxy instances Otherwise Doctrine *CANNOT* create proxy instances
of this entity and will *ALWAYS* load the entity eagerly. of this entity and will *ALWAYS* load the entity eagerly.
SQL Schema considerations SQL Schema considerations