public function get($objectId, $useMasterKey = false)
    {
        $this->equalTo('objectId', $objectId);
        $result = $this->first($useMasterKey);
        if (empty($result))
        {
            throw new AVException("Object not found.", 101);
        }

        return $result;
    }
public function get($objectId, $useMasterKey = false)
    {
        $this->equalTo('objectId', $objectId);
        $result = $this->first($useMasterKey);
        if (empty($result))
        {
            throw new AVException("Object not found.", 101);
        }

        return $result;
    }
public function get ( $ objectId , $ useMasterKey = false ) { $ this -> equalTo ( 'objectId' , $ objectId ) ; $ result = $ this -> first ( $ useMasterKey ) ; if ( empty ( $ result ) ) { throw new AVException ( "Object not found." , 101 ) ; } return $ result ; }
Execute a query to retrieve a specific object

@param string $objectId Unique object id to retrieve.
@param bool $useMasterKey If the query should use the master key

@return array

@throws AVException
Execute a query to retrieve a specific object