php - change type of relation between two entities symfony2 -
i wanted ask if can modify type of relation between 2 entities depending on specific value. mean if $type==a relation many many otherwise must many t one. possible??? ideas???
only thing can instantiate object on condition: so, if condition true, can instantiate one. if b, other.
obviously, can define different cardinality objecta
, objectb
.
remember cardinality defined statically , used create (or use) db schema
Comments
Post a Comment