mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-3809: Notice: Undefined index in /lib/Doctrine/ORM/Query/SqlWalker.php at line 1920 #4664
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 (Jul 7, 2015).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user dkarlovi:
I have two entities, AchievementGoal & AchievementLevel, like so:
When I try to do query like:
I get the error:
Notice: Undefined index: achievementLevel in vendor/doctrine/orm/lib/Doctrine/ORM/Query/SqlWalker.php at line 1920. There seems to be a problem when using both @Id and @Column on the property, if I remove either one, it works (throws some other error, but unrelated to this).
@doctrinebot commented on GitHub (Jul 7, 2015):
Comment created by dkarlovi:
Well, this is awkward. It seems I used @Column instead of @JoinColumn. Only figured it out once I saw Symfony toolbar said I have an invalid mapping. Is there a way for a error to be thrown here?
Hope this helps someone, closing.
@doctrinebot commented on GitHub (Jul 7, 2015):
Comment created by dkarlovi:
Invalid issue, using @Column instead of @JoinColumn. Should trigger an error if possible here, though.
@doctrinebot commented on GitHub (Jul 7, 2015):
Issue was closed with resolution "Invalid"