Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

how to send id_property by GET #19

Open
AmsTaFFix opened this issue Dec 5, 2013 · 0 comments
Open

how to send id_property by GET #19

AmsTaFFix opened this issue Dec 5, 2013 · 0 comments

Comments

@AmsTaFFix
Copy link
Collaborator

I have simple entity:

Class Book {
    private $id;
}
Class Page {
    private $book;
}

when i make get request, like localhost/pages, i have response like this

[
    23 => [
        'book'=>[
            'id'=>23
        ],
        'book_id'=>null
    ]
];

How i can get book_id, without create new field with same name in Page entity?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant