You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generates nullable columns incorrectly for HasMany relation #17
Fixed in cycle/schema-builder#86: when several relations generate the same foreign key column (e.g. HasMany and BelongsTo(nullable: true)), the column is now nullable if any of them asks for it, regardless of entity order. Columns declared explicitly via #[Column] are not changed. The fix will be available in the next cycle/schema-builder release.
Activity
vvval commentedon Aug 6, 2021
probably this is the same problem as I faced in this issue cycle/orm#120
butschster commentedon Aug 17, 2021
Try to add nullable to comments relation
roxblnfk commentedon Oct 5, 2026
Fixed in cycle/schema-builder#86: when several relations generate the same foreign key column (e.g.
HasManyandBelongsTo(nullable: true)), the column is now nullable if any of them asks for it, regardless of entity order. Columns declared explicitly via#[Column]are not changed. The fix will be available in the next cycle/schema-builder release.