Many to Many Association. How?
I have two Models : User and Hotel. These are "tied" by a Many to Many Association. A Hotel can have many Users and a Users may have many Hotels. I have read about many to many associations in ExtJS in Internet, but I'm a bit confused about it. So, here are my questions:
Any hint will be very very appreciated.
- Do you have to set this association in the models?
- How do you save this association on the server? Do you need a separate store that handles it?
- On the front end, how can this association be displayed? For example, I have a window that edits a user. I thought I could represent the hotel association with a multi-selection grid, that displays all the hotels a user "belongs to". Is this a good idea?
Thank you very much in advance,
Tags for this Thread