Reflect MySQL polymorphic association in Doctrine 2.2
问题 I'm using Doctrine 2.2.0 together with Codeigniter. I'm new to Doctrine (or to ORM in general). I'm setting up entity and proxy classes based on YAML files which works fine. I do have problems in reflecting a polymorphic association in my DB in my Doctrine classes. I'm looking for a concrete example on how to implement the following polymorphic association in Doctrine. In my DB I have a table called products. Depending on the value of field object_type and object_id I want to relate either to