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? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -