src/Data/DefaultDataProvider.php
protected function createModelFromDatabaseResult(array $result)
    {
        $model = $this->getEmptyModel();

        foreach ($result as $key => $value) {
            if ($key === $this->idProperty) {
                $model->setIdRaw($value);
            }

            $model->setPropertyRaw($key, StringUtil::deserialize($value));
        }

        return $model;
    }
protected function createModelFromDatabaseResult(array $result)
    {
        $model = $this->getEmptyModel();

        foreach ($result as $key => $value) {
            if ($key === $this->idProperty) {
                $model->setIdRaw($value);
            }

            $model->setPropertyRaw($key, StringUtil::deserialize($value));
        }

        return $model;
    }
protected function createModelFromDatabaseResult ( array $ result ) { $ model = $ this -> getEmptyModel ( ) ; foreach ( $ result as $ key => $ value ) { if ( $ key === $ this -> idProperty ) { $ model -> setIdRaw ( $ value ) ; } $ model -> setPropertyRaw ( $ key , StringUtil :: deserialize ( $ value ) ) ; } return $ model ; }
Create a model from a database result.

@param array $result The database result to create a model from.

@return ModelInterface
Create a model from a database result .