Hi guys, how can i map mongo document with nested props to extjs model with associations and then use reference to this model in my ViewModel ?
My JSON data:
PHP Code:
{
"host": "name",
"config": {
"application": {
"prop": true,
"prop2": "somestring"
},
"mail": {
"server": "somestring"
}
}
}
Right now my model and viewModel looks like : http://pastebin.com/i28XqjW8 , but i have some problems with bind existing record (newly created seems ok..) to my form in modal edit-window,
1. Loop errors :
[E] TypeError: Cannot read property 'document' of undefined
2. Record not be dirty when i edit nested props