mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1908: Symfony 2 Doctrine join tables error #2406
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 5, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user cfyzz:
Hello developers of Doctrine. I appreiate your work on a such complicated project. So seems I'found a bug in Doctrine in generating SQL
I had written this issue on Symfony forum but noone is answering, so maybe I've found the bug of Doctrine or FOSUserBundle
I'm using Symfony 2.0.12, so I've installed as git submodules FOSUserBundle, created User Entity with one-to-one relationship with Company Entity, here goes the code:
and piece of Company Entity:
When creating fixtures I'm using such method (all references are set, and I have checked for foreign keys in DB - everything is fine)
$this->container->get('fos_user.user_manager')->createUser($user);
When I'm trying to login I see such error:
The whole SELECT statement that I found in logs sounds like this one:
Does anyone know why it's not t0 in join condition but t46?
If needed I'll show my deps.lock, maybe such situation was already fixed, but I was googling for answer for several days - and nothing.
Thanks in advance
@doctrinebot commented on GitHub (Jul 5, 2012):
Comment created by @beberlei:
Fixed formatting
@doctrinebot commented on GitHub (Jul 5, 2012):
Comment created by @beberlei:
What version of Doctrine are you using? you can check in vendor/doctrine-orm/lib/Doctrine/ORM/Version.php
@doctrinebot commented on GitHub (Jul 6, 2012):
Comment created by cfyzz:
Thanks, Benjamin, for so quick answer.
I've checked the file you mentioned - the version is "2.1.6"
@doctrinebot commented on GitHub (May 1, 2013):
Comment created by @beberlei:
This was fixed in later versions.
@doctrinebot commented on GitHub (Sep 8, 2013):
Issue was closed with resolution "Duplicate"