Copy link to clipboard
Copied
Hello,
I have this code
--------
user = entityload("Users", session.userid);
item = entitynew("Items");
item.setTitolo("Fables");
item.setDescrizione("Great Book");
entitysave(item);
dump(item); // addItem method existing in the dump trace
user.addItem(item);
entitysave(user);
Copy link to clipboard
Copied
Well I think I got it: in the second case, the object is a single record.