public function getCrashReports() { if ($this->crashReports === null) { $this->crashReports = CrashReport::findAllByErrorCase($this->id); } return $this->crashReports; }