src/Payum/Core/Bridge/Zend/Storage/TableGatewayStorage.php
protected function doGetIdentity($model)
    {
        $id = $this->getModelId($model);

        if (!$id) {
            throw new LogicException('The model must be persisted before usage of this method');
        }

        return new Identity($id, $model);
    }
protected function doGetIdentity($model)
    {
        $id = $this->getModelId($model);

        if (!$id) {
            throw new LogicException('The model must be persisted before usage of this method');
        }

        return new Identity($id, $model);
    }
{@inheritDoc}