Reputation: 1
I would like to create some kind of relation between YML where I put name of days eg.:
0: Sunday
1: Monday
...
6: Saturday
On the other hand I would like to create entity called Company with many fields in table eg. id, name, description
etc.
Is it possible to create relation map between YML and Entities called OpenHoursMap in form like this:
day_id, company_id, open_hour, close_hour
?
If yes, could you tell me the fastest way to do that?
Upvotes: 0
Views: 86
Reputation: 211
Not sure about what you are trying to do but maybe you could do a custom form type similar to the CountryType
or LocaleType
?
Upvotes: 0