src/Payum/Core/Bridge/Zend/Storage/TableGatewayStorage.php
protected function doUpdateModel($model)
    {
        if ($id = $this->getModelId($model)) {
            $this->tableGateway->update(
                $this->tableGateway->getResultSetPrototype()->getHydrator()->extract($model),
                array("{$this->idField} = ?" => $id)
            );
        } else {
            $this->tableGateway->insert($this->tableGateway->getResultSetPrototype()->getHydrator()->extract($model));
        }
    }
protected function doUpdateModel($model)
    {
        if ($id = $this->getModelId($model)) {
            $this->tableGateway->update(
                $this->tableGateway->getResultSetPrototype()->getHydrator()->extract($model),
                array("{$this->idField} = ?" => $id)
            );
        } else {
            $this->tableGateway->insert($this->tableGateway->getResultSetPrototype()->getHydrator()->extract($model));
        }
    }
{@inheritDoc}