|
|
@ -1124,9 +1124,9 @@ class ActiveRecord extends Model |
|
|
|
return $relation; |
|
|
|
return $relation; |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (UnknownMethodException $e) { |
|
|
|
} catch (UnknownMethodException $e) { |
|
|
|
} |
|
|
|
|
|
|
|
throw new InvalidParamException(get_class($this) . ' has no relation named "' . $name . '".'); |
|
|
|
throw new InvalidParamException(get_class($this) . ' has no relation named "' . $name . '".'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Establishes the relationship between two models. |
|
|
|
* Establishes the relationship between two models. |
|
|
|