-function(j){if(j==null){e._data[f]=null;e._data_obj[f]=undefined}elseif(j.id){e._data[f]=j.id;e._data_obj[f]=j;persistence.add(j)}else e._data[f]=j;e._dirtyProperties[f]=true;e.triggerEvent("set",e,f,j)});e.__defineGetter__(f,function(){if(e._data[f]===null||e._data_obj[f]!==undefined)return e._data_obj[f];elsethrow"Property '"+f+"' with id: "+e._data[f]+" not fetched, either prefetch it or fetch it manually.";})}();for(h in b.hasMany)b.hasMany.hasOwnProperty(h)&&function(){var f=h;if(b.hasMany[f].manyToMany){e.__defineSetter__(f,

+function(k){if(k==null){f._data[g]=null;f._data_obj[g]=undefined}elseif(k.id){f._data[g]=k.id;f._data_obj[g]=k;persistence.add(k)}else f._data[g]=k;f._dirtyProperties[g]=true;f.triggerEvent("set",f,g,k)});f.__defineGetter__(g,function(){if(f._data[g]===null||f._data_obj[g]!==undefined)return f._data_obj[g];elsethrow"Property '"+g+"' with id: "+f._data[g]+" not fetched, either prefetch it or fetch it manually.";})}();for(i in b.hasMany)b.hasMany.hasOwnProperty(i)&&function(){var g=i;if(b.hasMany[g].manyToMany){f.__defineSetter__(g,