ufront / ufront-orm

The Object Relational Mapper, allows easy, type-safe access to your database. Builds on Haxe's SPOD but adds macro powered relationships, validation and client side usage
MIT License
13 stars 4 forks source link

Serializer Object/ManyToMany useCache #30

Open filt3rek opened 8 years ago

filt3rek commented 8 years ago

Hej, Is there a reason why Object has s.useCache = false; and ManyToMany has s.useCache = true; ? There are 2 things :

It's difficult to explain, take a look at the trace it makes in js console :

`ContactsApi.hx:80: 29,{office.Office#1406},TClass({ name : [ufront,db,ManyToMany] })

Boot.hx:62 ContactsApi.hx:80: 30,{office.Office#1868},TClass({ name : [ufront,db,ManyToMany] })

Boot.hx:62 ContactsApi.hx:80: 31,{office.Office#1653},TClass({ name : [ufront,db,ManyToMany] })

Boot.hx:62 ContactsApi.hx:80: 32,{Mon Nov 07 2016 11:39:17 GMT+0100 (Paris, Madrid)},TClass({ name : [ufront,db,ManyToMany] })

Boot.hx:62 ContactsApi.hx:80: 33,{office.Office#251},TClass({ name : [ufront,db,ManyToMany] })

Boot.hx:62 ContactsApi.hx:80: 34,{Mon Nov 07 2016 11:42:15 GMT+0100 (Paris, Madrid)},TClass({ name : [ufront,db,ManyToMany] })

Boot.hx:62 ContactsApi.hx:80: 35,{office.Office#1389},TClass({ name : [ufront,db,ManyToMany] })

Boot.hx:62 ContactsApi.hx:80: 36,{office.Office#118},TClass({ name : [ufront,db,ManyToMany] })

Boot.hx:62 ContactsApi.hx:80: 37,{office.Office#254},TClass({ name : [ufront,db,ManyToMany] })`