mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[Error] "Missing value for primary key" when I try to use findOneBy in controller #6144
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 @brunorafaeI on GitHub (Dec 20, 2018).
Originally assigned to: @Ocramius on GitHub.
So, I have this error "Missing value for primary key..." when I try to use the function findOneBy() in controller Symfony 3.4, I have two tables with the same composite keys:
1 grParagraphe - composite keys (idGrpParagraphe, idTypeDocument);
2 Paragraphe - composite keys (idParagraphe, idTypeDocument) that has the join Columns from Group.
When I use the same function(findOneBy) for get the group, it works very well! No error.
in the controller
I have the values 132 for idParagraphe and 1 for idTypeDocument.
Someone can help me pls?
@Ocramius commented on GitHub (Dec 20, 2018):
@brunorafaeI what's the stack trace like?
Meanwhile, closing, since this is not an issue.