Ticket #1247 (closed defect: fixed)

Opened 5 months ago

Last modified 3 months ago

Many to many relations with Doctrine::ATTR_QUOTE_IDENTIFIER broken

Reported by: bootc Owned by: romanb
Priority: minor Milestone: 1.0.0
Component: Query/Hydration Version: 1.0.0
Keywords: Cc:
Has Test: yes Status: Pending Core Response
Has Patch: no

Description

I have two tables joined together in a many-to-many relationship. If I enable Doctrine::ATTR_QUOTE_IDENTIFIER on the connection (MySQL using PDO), I get exceptions like the following: PHP Fatal error: Uncaught exception 'Doctrine_Query_Exception' with message 'Unknown table alias f' in /root/docbug/lib/Doctrine/Query/Abstract.php:907

Attachments

test.php (1.6 KB) - added by bootc 5 months ago.
test case

Change History

Changed 5 months ago by Jamon

Wow, that's a coincidence. I just opened Ticket #1246 on this same issue about 5 minutes ago. If you're interested, my post has a patch to fix it.

http://trac.phpdoctrine.org/ticket/1246

Changed 5 months ago by bootc

test case

Changed 5 months ago by guilhermeblanco

  • status changed from new to closed
  • resolution set to fixed

(In [4686]) Fixed #1246 and fixed #1247. The issue is the same, patch applied! Thanks for report and for the patch.

Changed 3 months ago by jwage

  • version changed from 0.11 to 1.0
  • milestone changed from 1.1.0 to 1.0.0
Note: See TracTickets for help on using tickets.