I have a database structure that is based on EAV model. Each objects has different kind of metafields with different names.
How could I create a Model in Sencha Touch that will be dynamic?
Thanks.
Regards,
Shafqat
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s nothing preventing you from creating the Models at run time.
You can add all the additional properties that are needed like validations and associations.
This obviously isn’t that great as you’ll be doing it every time it is loaded. It may be better to, on the server, output the model definitions whenever they change and just include them into your mobile html document.