views:

29

answers:

1

I have an abstract class User and 2 classes which inherit from it, namely BEUser and FEUser. Information about all users (FEUser and BEUser) is stored in a single table. Does Doctrine allows this kind of mapping? Any examples?

Also if doctrine supports it which object does the table class return (FEUser or BEUser)?

Thank You

+2  A: 

Yes, it does. It's called "simple" or "column aggregation" inheritance. Second one allows to store object type in database.

develop7
thank you ...that works
rahul
If it works, please, mark my answer as correct.
develop7