/**
* In addition to calling parent method, tell all properties and clean deletedProperties
*/
public function confirmSaved()
{
foreach ($this->properties as $property) {
if ($property->isModified() || $property->isNew()) {
$property->confirmSaved();
}
}
$this->deletedProperties = array();
parent::confirmSaved();
}