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; }