public function insert(TActiveRecord $record)
{
//$this->updateAssociatedRecords($record,true);
$result = $this->getCommand($record)->insert($this->getInsertValues($record));
if ($result) {
$this->updatePostInsert($record);
}
//$this->updateAssociatedRecords($record);
return $result;
}