PDA

View Full Version : Associations between models in designer 2



cmehmet
4 Mar 2012, 6:34 AM
Hi,
I was wondering if others also had problems getting associations(HasMany, BelongTo,...), between models, to work in designer?
If it worked for you... How did you do it?

I'm adding a requires to the store/mystore.js file

requires: [
'AssociationsTest.model.Service',
'AssociationsTest.model.Method',
'AssociationsTest.model.Parameter'
]

But it gets overwritten every time I "preview" although it says:"You should implement event handling and custom methods in this class."


Mehmet

Möhre
4 Mar 2012, 10:20 AM
I don´t know about designer 2.0 but be carefull using relations. HasMany and BelongsTo is still buggy and incomplete in Sencha Touch 2.0 if based on localstore, have a look at the ST 2.0 forums.

aconran
5 Mar 2012, 5:26 AM
But it gets overwritten every time I "preview" although it says:"You should implement event handling and custom methods in this class."

http://www.sencha.com/forum/showthread.php?184095-Breaking-changes-regarding-Code-Editing-Build-gt-298