public function load(Model $m, $id)
    {
        $data = $this->tryLoad($m, $id);

        if (!$data) {
            throw new Exception([
                'Record was not found',
                'model'      => $m,
                'id'         => $id,
                'conditions' => $m->conditions,
            ], 404);
        }

        return $data;
    }
public function load(Model $m, $id)
    {
        $data = $this->tryLoad($m, $id);

        if (!$data) {
            throw new Exception([
                'Record was not found',
                'model'      => $m,
                'id'         => $id,
                'conditions' => $m->conditions,
            ], 404);
        }

        return $data;
    }
public function load ( Model $ m , $ id ) { $ data = $ this -> tryLoad ( $ m , $ id ) ; if ( ! $ data ) { throw new Exception ( [ 'Record was not found' , 'model' => $ m , 'id' => $ id , 'conditions' => $ m -> conditions , ] , 404 ) ; } return $ data ; }
Loads a record from model and returns a associative array.

@param Model $m
@param mixed $id

@return array
Loads a record from model and returns a associative array .