View Full Version : Create a model instance with associations and mapping fields

2 Aug 2013, 3:00 PM
Hi there,
When create an instance of my model it behaves unexpectedly, associations won't load and no mapping of fields with "Mapping" property.

i fix this problem to my need with this gist (https://gist.github.com/cmilfont/6142566)

Example of code - test this same code before and after those overriding - (https://gist.github.com/cmilfont/6144216)

What i'm doing wrong? it's correct?


Gary Schlosberg
8 Aug 2013, 8:26 AM
Looks like you need to your association to run through the reader. Here's a blog post that should help:

From above link: "To get associations to work properly, the reader that is attached to the proxy has to be involved in reading the data to setup the associations."