php - sub-entity schema implementation -


i want implement system of category , associated options in symfony 2.

so category (example: car, home) have categoryoption (example: date, color, size, etc…).

moreover, category entities have many 1 relationship advert entity. mean advert can have 1 category infinite advert can attached category. so, @ end, want able make dynamic form that:

enter image description here

if select category (ex: caravanning), of attached subcategory appear that:

enter image description here

and allow user select or enter desired information.

i have implemented category , advert entity don’t know schema use options , how generate form. have create new categoryoption entity , make relationship advert , category or use way?

of course, categoryoption attached advert can edited user.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -