Skip to content

URL parameter for .hasMany relationships #53

@DibbsZA

Description

@DibbsZA

Is there a way to force the .hasMany() relationship to use URL parameters and not query strings?

My Rest API wants the parameters in the form:

 /API/Incident/Activity/:ProblemID
 which resolves to...
 /API/Incident/Activity/2

I can correctly call the model directly by passing in the correct named parameter, but the automatic association of parent-to-child is always called with the query string like:

 /API/Incident/Activity?problem_id=2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions