public function loadByNumericId(int $id, bool $readonly = false, array $options = [])
    {
        $annotation = $this->dataService->getAnnotation();
        $base = $this->getBaseUri($annotation, $readonly);

        $uri = new Uri($base.'/'.$id);

        return $this->load($uri, $options);
    }
public function loadByNumericId(int $id, bool $readonly = false, array $options = [])
    {
        $annotation = $this->dataService->getAnnotation();
        $base = $this->getBaseUri($annotation, $readonly);

        $uri = new Uri($base.'/'.$id);

        return $this->load($uri, $options);
    }
public function loadByNumericId ( int $ id , bool $ readonly = false , array $ options = [ ] ) { $ annotation = $ this -> dataService -> getAnnotation ( ) ; $ base = $ this -> getBaseUri ( $ annotation , $ readonly ) ; $ uri = new Uri ( $ base . '/' . $ id ) ; return $ this -> load ( $ uri , $ options ) ; }
Load a data object from MPX, returning a promise to it.

@param int   $id       The numeric ID to load.
@param bool  $readonly (optional) Load from the read-only service.
@param array $options  (optional) An array of HTTP client options.

@return PromiseInterface
Load a data object from MPX returning a promise to it .