Commit 37f3a400 by Alexander Kochetov

ActiveRecord::getRelation() bugfix

parent dd596914
......@@ -1131,9 +1131,9 @@ class ActiveRecord extends Model
return $relation;
}
} catch (UnknownMethodException $e) {
}
throw new InvalidParamException(get_class($this) . ' has no relation named "' . $name . '".');
}
}
/**
* Establishes the relationship between two models.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment