nullable false not working on xml many-to-one #6481

Open
opened 2026-01-22 15:33:52 +01:00 by admin · 0 comments
Owner

Originally created by @r-capilla-zeus on GitHub (Jun 5, 2020).

Hi, when I try to set the nullable attribute in a many-to-one relationship with xml nothing happens. With update-schema it says "nothing to update".

<many-to-one field="calendarType" target-entity="App\ScheduleContext\Domain\Model\CalendarType"> <join-column name="calendar_type_id" referenced-column-name="id" nullable="false"/> </many-to-one>

Originally created by @r-capilla-zeus on GitHub (Jun 5, 2020). Hi, when I try to set the nullable attribute in a many-to-one relationship with xml nothing happens. With update-schema it says "nothing to update". ` <many-to-one field="calendarType" target-entity="App\ScheduleContext\Domain\Model\CalendarType"> <join-column name="calendar_type_id" referenced-column-name="id" nullable="false"/> </many-to-one>`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6481