S
S
Sergey K2015-04-16 13:35:43
Doctrine ORM
Sergey K, 2015-04-16 13:35:43

Symfony2 + multiple entity binding?

Good afternoon!
I'm currently building a bulletin board.
There is an Adv(ad) entity that has a Location(Country/City/Region) property and a few more similar properties to fill in.
The Location entity is filled with Cities, regions, and is used as a reference.
And I'm wondering if I need to use relationships between tables as described here?
symfony.com/doc/current/book/doctrine.html#relatio...
Or can you just do it after submitting the form Adv::setLocation(10)?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question