public function loadAny(Model $m)
    {
        $data = $this->tryLoadAny($m);

        if (!$data) {
            throw new Exception([
                'No matching records were found',
                'model'      => $m,
                'conditions' => $m->conditions,
            ], 404);
        }

        return $data;
    }
public function loadAny(Model $m)
    {
        $data = $this->tryLoadAny($m);

        if (!$data) {
            throw new Exception([
                'No matching records were found',
                'model'      => $m,
                'conditions' => $m->conditions,
            ], 404);
        }

        return $data;
    }
public function loadAny ( Model $ m ) { $ data = $ this -> tryLoadAny ( $ m ) ; if ( ! $ data ) { throw new Exception ( [ 'No matching records were found' , 'model' => $ m , 'conditions' => $ m -> conditions , ] , 404 ) ; } return $ data ; }
Loads any one record.

@param Model $m

@return array
Loads any one record .