Prado\Data\ActiveRecord\TActiveRecordGateway::insert PHP 메소드

insert() 공개 메소드

Insert a new record.
public insert ( TActiveRecord $record ) : integer
$record TActiveRecord
리턴 integer number of rows affected.
    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;
    }