public function update()
{
$this->getDao()->update();
// save all workspaces
$this->getDao()->emptyWorkspaces();
foreach ($this->getWorkspacesAsset() as $workspace) {
$workspace->save();
}
foreach ($this->getWorkspacesDocument() as $workspace) {
$workspace->save();
}
foreach ($this->getWorkspacesObject() as $workspace) {
$workspace->save();
}
}