I'm trying to update the property of a DataObject and it's just not having it. The DataObject is a sub class of another class extending DataObject if that matters. The objects property updates fine but doesn't save to the database. Am I missing something?
$results = DataObject::get("User", "SHA1(`Username`) = '{$activationKey}'", "", "", "1");
if($results->TotalItems() == 1)
{
$results = $results->toArray();
$results[0]->Activated = true;
$results[0]->write();
}
[EDIT] The DataObject will update its own properties but not the parent objects, guess that makes sense but how can I update the parent objects properties?