Category: relationship

Symfony / php : avoid query to give nested json objects from one to many relation

I have entities; Command, User, GiftCheck, and GiftCheckType : GiftCheck <?php namespace AppEntity; use DoctrineORMMapping as ORM; /** * @ORMEntity(repositoryClass=”AppRepositoryGiftCheckRepository”) */ class GiftCheck { /** * @ORMId() * @ORMColumn(type=”integer”, length=255) *@ORMGeneratedValue(strategy=”AUTO”) */ private $id; /** * @ORMColumn(type=”string”, length=255, columnDefinition=”ENUM(‘Cadeau’, ‘Anniversaire’,…

How to receive Childrens inherited datas from an Entity that is having a JOINED relation with it parent

according to the following structure i need to receive the data “name”(from entity Media) and the data “ext” (from Entity Image) when i use a findAllRequest from the template repository. class Template { Zone $Zone(@ORMOne to Many) … } class…