10000 AbstractAdapter::newQuery() not used for included relations · Issue #490 · cloudcreativity/laravel-json-api · GitHub
[go: up one dir, main page]

Skip to content
AbstractAdapter::newQuery() not used for included relations #490
Closed
@seankndy

Description

@seankndy

I've overrode AbstractAdapter::newQuery() in one of my model adapters so that I can add a withCount() to the Builder.

This particular model has children relation which are of the same type as itself. When I "include" the children via include paths: /foo/?include=children the children are included fine, however the children do not have the withCount() applied that I am doing in newQuery(). Any input on how to properly get this done?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0