Make an object actually hold up-to-date sanitized data after updating it

feature/node-rewrite
Sven Slootweg 13 years ago
parent 5f8d9f8332
commit cbbb7b2a88

@ -249,8 +249,6 @@ class Container extends CPHPDatabaseRecordClass
$this->uRootPassword = $sRootPassword;
$this->InsertIntoDatabase();
var_dump($this->sTemplate->sTemplateName);
$command = shrink_command("vzctl create {$this->sInternalId}
--ostemplate {$this->sTemplate->sTemplateName}
");

@ -34,6 +34,11 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass
$this->EventConstructed();
}
public function RefreshData()
{
$this->ConstructDataset($this->sId);
}
public function ConstructDataset($uDataSource, $uCommunityId = 0)
{
$bind_datasets = true;
@ -348,6 +353,7 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass
}
$this->PurgeCache();
$this->RefreshData();
return $result;
}

Loading…
Cancel
Save