mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1587: Foreign key as Primary does not work as intended #1991
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 @doctrinebot on GitHub (Jan 8, 2012).
Originally assigned to: @guilhermeblanco on GitHub.
Jira issue originally created by user presteus:
Hi,
In first time, sorry for my bad english.
The feature Foreign key as Primary does not work as intended.
The CLI tool report an error on validating mapping:
The referenced column name 'pk_agent' does not have a corresponding field with this column name on the class 'BddP\Model\Entity\Sd\Contact'.
If I run the application, many features works: querying, entity population.
But for persist a new Agent without associated entities for OneToOne; the ORM report :
PDOException: SQLSTATE[23502]: Not null violation on "pk" column
And If I comment all OneToOne, the persist work.
Thank you in advance for your response.