mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
manyToOne with nullable not working .. bug ? #4990
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @poolerMF on GitHub (Jan 26, 2016).
EXAMPLE 1 with JoinColumns
-> this causes: "Integrity constraint violation: 1048 Column 'created_by' cannot be null"
EXAMPLE 2 without JoinColumns
-> nullable works ...
I think it's bug and example 1 should works too ...
in EntityGenerator->generateAssociationMappingPropertyDocBlock() ... prefix @JoinColumns should be added only if there is more than one JoinColumn ?
@backbone87 commented on GitHub (Jan 26, 2016):
Are you sure your report is based on correct observations? Your mapping describes a join column "created_by", but your error denotes a column named "deleted_at".
@poolerMF commented on GitHub (Jan 26, 2016):
@backbone87 my mistake ... it's 'created_by' not 'deleted_at' in error ... I updated issue
@anvnguyen commented on GitHub (Jul 29, 2020):
is there any update on this issue? I encounter similar one.