src/Common/Manager/AbstractManager.php
public function fromArray(array $data, $modelClass = null)
    {
        if (null === $modelClass) {
            $modelClass = $this->getModelClass();
        }

        return $this->client->getHydrator()->hydrate($modelClass, $data);
    }
public function fromArray(array $data, $modelClass = null)
    {
        if (null === $modelClass) {
            $modelClass = $this->getModelClass();
        }

        return $this->client->getHydrator()->hydrate($modelClass, $data);
    }
public function fromArray ( array $ data , $ modelClass = null ) { if ( null === $ modelClass ) { $ modelClass = $ this -> getModelClass ( ) ; } return $ this -> client -> getHydrator ( ) -> hydrate ( $ modelClass , $ data ) ; }
Create the model from an array.

@param array  $data
@param string $modelClass

@return ModelInterface
Create the model from an array .