<doctrine-mapping> <entity repository-class="App\Repository\ActivityRepository" name="App\Entity\ActivityEntity" table="activity"> <id name="id" type="string" column="id" length="8"/> <field name="name" type="string" column="name" length="256"/> <field name="startDate" type="date" column="startDate"/> <field name="endDate" type="date" column="endDate"/> <field name="realStartDate" type="date" column="realStartDate"/> <field name="realEndDate" type="date" column="realEndDate"/> <many-to-one field="actor" target-entity="ActorEntity"> <join-column name="actor" referenced-column-name="id" /> </many-to-one> </entity> </doctrine-mapping>