andersao/l5-repository

Filter doesn't work with presenter

Aperta

#449 aperta il 8 ott 2017

 (4 commenti) (0 reazioni) (0 assegnatari)PHP (882 fork)batch import
help wanted

Metriche repository

Star
 (4199 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

when i use presenter in repository class getting this result :

{{Url}}/bazaars?token={{token}}&filter=id;name

{
    "data": [
        {
            "id": 1,
            "name": "temp",
            "address": null,
            "city": null,
            "province_id": null
        },
        {
            "id": 2,
            "name": "temp1",
            "address": null,
            "city": null,
            "province_id": null
        }
]

but i need this:

{
    "data": [
        {
            "id": 1,
            "name": "temp",
        },
        {
            "id": 2,
            "name": "temp1"
        }
]

and i'm using fractal transformer.

Guida contributor