Commit 901dabc3 by Qiang Xue

Merge pull request #162 from creocoder/active-record-get-relation

ActiveRecord::getRelation() bugfix
parents 1c93c503 37f3a400
......@@ -1124,8 +1124,8 @@ class ActiveRecord extends Model
return $relation;
}
} 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 . '".');
}
/**
......
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