3373 Posts in 998 Topics by 712 members
|Go to End|
6 June 2012 at 3:43am
I'm scratching my head a little bit trying to figure out what the Datalist equivalent of the following is:
$member = new Member();
$member->Name = "Alex";
When I execute this, I keep getting "the method 'write' does not exist on 'DataList'". I'm either missing something completely obvious or the documentation isn't great for the new ORM.
Can anyone help?!
6 June 2012 at 5:40am
The issue is that Member is extended from DataObject, not DataObjectSet. Datalist is replacing DataObjectSet. I'm no expert but I think DataObject is not changed too much.
|Go to Top|