in my controllor I have:
$pages = DataObject::get("Page", "`ParentID` = '$ID'");
if ($pages) {
foreach ($pages as $page) {
$page->extraInfo= 'blahblah';
}
}
}
return $pages;
this worked fine in SS2.4, but when I loop the dataobject in a template in ss3, there is no value for $extraInfo... I know the ORM works a bit differently now, do I have to do something else to 'add' values to the dataobject returned to the template?
Cheers