javascript - jaydata not working in related data storage -


i new jaydata , learned through many tutorials , examples how define model , store data using jaydata. have written code store data on local storage , has 2 entities 1 many relation each other. have checked code many times , compared available example codes , right code not working. problem when push single entity array defined in other entity model, not save changes , if comment push line, works fine. have created jsfiddle , have commented line in js code.

the code this:

var task_entity = new tsk({task_work:tsk }); mydb.tasks.add(task_entity);  var category_entity=new categry({name:ctgry}); category_entity.taskk=new array();          //category_entity.taskk.push(task_entity);  // line not working  mydb.categorys.add(category_entity); 

i have commented line creating problem

here jsfiddle http://jsfiddle.net/zgqyz/1/

please let me know wrong code or may jaydata model, can't find main problem.

only websql/sqlite supports navigation @ moment, change soon


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -