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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -