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

update() 공개 메소드

Update the record.
public update ( TActiveRecord $record ) : integer
$record TActiveRecord
리턴 integer number of rows affected.
    public function update(TActiveRecord $record)
    {
        //$this->updateAssociatedRecords($record,true);
        list($data, $keys) = $this->getUpdateValues($record);
        $result = $this->getCommand($record)->updateByPk($data, $keys);
        //$this->updateAssociatedRecords($record);
        return $result;
    }