Prado\Data\ActiveRecord\TActiveRecordGateway::onCreateCommand PHP Метод

onCreateCommand() публичный Метод

The parameter object is TDataGatewayEventParameter of which the {@link TDataGatewayEventParameter::getCommand Command} property can be inspected to obtain the sql query to be executed. This method also raises the OnCreateCommand event on the ActiveRecord object calling this gateway.
public onCreateCommand ( $sender, $param )
    public function onCreateCommand($sender, $param)
    {
        $this->raiseEvent('OnCreateCommand', $this, $param);
        if ($this->_currentRecord !== null) {
            $this->_currentRecord->onCreateCommand($param);
        }
    }