gantbd
23 Apr 2012, 7:19 AM
Morning all,
Have a quick question regarding when to use a store proxy vs a model proxy.
I have an application that needs CRUD + listing functionality on a database table, and I am currently using a store proxy to retrieve the list and push it into a grid (works great). However, as I am looking further into the framework, it appears that only the model allows (in the "api" config) specification of CRUD actions / URLs.
Could someone verify, discredit or otherwise enlighten on the following understanding?
1) List actions should occur over the Store proxy (given that a Store is a collection / list of models)
2) CRUD actions should happen over the Model proxy (given that they occur on individual records)
Thanks so much!
Sincerely,
Brian
Have a quick question regarding when to use a store proxy vs a model proxy.
I have an application that needs CRUD + listing functionality on a database table, and I am currently using a store proxy to retrieve the list and push it into a grid (works great). However, as I am looking further into the framework, it appears that only the model allows (in the "api" config) specification of CRUD actions / URLs.
Could someone verify, discredit or otherwise enlighten on the following understanding?
1) List actions should occur over the Store proxy (given that a Store is a collection / list of models)
2) CRUD actions should happen over the Model proxy (given that they occur on individual records)
Thanks so much!
Sincerely,
Brian