LerochkaKapito / extjs-bundle

Use ExtJs with Symfony 2
MIT License
21 stars 18 forks source link

how to send id_property by GET #19

Open AmsTaFFix opened 10 years ago

AmsTaFFix commented 10 years ago

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?