From 82419813df46fc984bdf787688dd95c68502144c Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sun, 10 Jul 2011 20:34:34 +0200 Subject: [PATCH] Another inheritance question --- en/reference/faq.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/en/reference/faq.rst b/en/reference/faq.rst index 5d33906ff..019ab1bdd 100644 --- a/en/reference/faq.rst +++ b/en/reference/faq.rst @@ -131,6 +131,13 @@ Yes, you can use Single- or Joined-Table Inheritance in Doctrine 2. See the documentation chapter on :doc:`inheritance mapping `_ for the details. +Why does Doctrine not create proxy objects for my inheritance hierachy? +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +If you set a many-to-one or one-to-one association target-entity to any parent class of +an inheritance hierachy Doctrine does not know what PHP class the foreign is actually of. +To find this out it has to execute an SQL query to look this information up in the database. + EntityGenerator ---------------