protected function rowToObject($row)
    {
        if ('array' == $this->returnDataType) {
            return $row;
        }

        if ($row) {
            $object = $this->createEntity();
            $this->loadObjectFromArray($object, $row);

            return $object;
        }

        return;
    }
protected function rowToObject($row)
    {
        if ('array' == $this->returnDataType) {
            return $row;
        }

        if ($row) {
            $object = $this->createEntity();
            $this->loadObjectFromArray($object, $row);

            return $object;
        }

        return;
    }
protected function rowToObject ( $ row ) { if ( 'array' == $ this -> returnDataType ) { return $ row ; } if ( $ row ) { $ object = $ this -> createEntity ( ) ; $ this -> loadObjectFromArray ( $ object , $ row ) ; return $ object ; } return ; }
Convert array to entity.

@param array $row

@return ModelInterface
Convert array to entity .