I
I
Igor2019-07-14 20:58:18
Doctrine ORM
Igor, 2019-07-14 20:58:18

How to make complex doctrine orm query?

Colleagues, good evening.
For example, if I want to filter only by Yandex.Money
Each object in JSON is essentially a separate entity.
The links are already set up
. How the request might look like, so that you can reach out from:


"name": "Yandex.Money",
"id": 12

{
            "name": "Holiday Inn Express Voronezh-Kirova",
            "image": "https://hiexvoronezh.ru/images/gallery/photo_hotel%20%2816%29.jpg",
            "postCode": 394018,
            "home": "9/1",
            "phone": "+7-473-206-59-99",
            "site": "http://auto-mile.com/\r\n",
            "schedule": "ежедневно, 9:00–19:00\r\n",
            "latitude": "56.006729",
            "longitude": "56.006729",
            "id": "122",
            "city": {
                "id": 3538,
                "name": "Воронеж"
            },
            "street": {
                "name": "Кирова",
                "id": 2
            },
            "country": {
                "id": 3159,
                "name": "Россия"
            },
            "rating": "4.3",
            "services": [
                {
                    "name": "Оплата картой",
                    "id": 3,
                    "types": [
                        {
                            "name": "MasterCard",
                            "id": 10
                        },
                        {
                            "name": "Maestro",
                            "id": 11
                        },
                        {
                            "name": "Яндекс.Деньги",
                            "id": 12
                        }
                    ]
                },
                {
                    "name": "Wi-Fi ",
                    "id": 4,
                    "types": []
                }
            ]
        },

Once again, each node is a separate entity and the entities already have relationships.
Actually JSON object, the result of the work of "entities".
Is it possible to give an answer without providing information about the entities,
so as not to litter the topic with useless code?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question