public function one($id) {

		if($this->_where) {
			throw new InvalidCallException(__METHOD__.'() can not be called with "where" clause');
		}

		$model = $this->_populate(
			$this->_request('get',
				$this->_getUrl('element', $id),
				[
					'query' => $this->_buildQueryParams()
				]
			),
			false
		);

		return $model;
	}
public function one($id) {

		if($this->_where) {
			throw new InvalidCallException(__METHOD__.'() can not be called with "where" clause');
		}

		$model = $this->_populate(
			$this->_request('get',
				$this->_getUrl('element', $id),
				[
					'query' => $this->_buildQueryParams()
				]
			),
			false
		);

		return $model;
	}
public function one ( $ id ) { if ( $ this -> _where ) { throw new InvalidCallException ( __METHOD__ . '() can not be called with "where" clause' ) ; } $ model = $ this -> _populate ( $ this -> _request ( 'get' , $ this -> _getUrl ( 'element' , $ id ) , [ 'query' => $ this -> _buildQueryParams ( ) ] ) , false ) ; return $ model ; }
GET resource element request
@inheritdoc
GET resource element request