DDC-1845: Implements a QuoteStrategy to fix quote problems #2325

Closed
opened 2026-01-22 13:48:30 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (May 28, 2012).

Jira issue originally created by user @FabioBatSilva:

As discussed to fix http://www.doctrine-project.org/jira/browse/DDC-1719
and other quote problems we need a quote strategy.

The QuoteStrategy should implements methods like :

function getColumnName($fieldName, ClassMetadata $class)
function getTableName(ClassMetadata $class)
function getJoinTableName($relation, ClassMetadata $class)
function getIdentifierColumnNames(ClassMetadata $class)
function getColumnAlias($columnName, $counter, ClassMetadata $class = null)

All current quotes will be replaced by one default QuoteStrategy.
That allows users find solutions themselves for weird quote cases.

Related Tickets :

http://www.doctrine-project.org/jira/browse/DDC-1719
http://www.doctrine-project.org/jira/browse/DDC-142
http://www.doctrine-project.org/jira/browse/DDC-1843
http://www.doctrine-project.org/jira/browse/DDC-1831

Originally created by @doctrinebot on GitHub (May 28, 2012). Jira issue originally created by user @FabioBatSilva: As discussed to fix http://www.doctrine-project.org/jira/browse/[DDC-1719](http://www.doctrine-project.org/jira/browse/DDC-1719) and other quote problems we need a quote strategy. The QuoteStrategy should implements methods like : ``` function getColumnName($fieldName, ClassMetadata $class) function getTableName(ClassMetadata $class) function getJoinTableName($relation, ClassMetadata $class) function getIdentifierColumnNames(ClassMetadata $class) function getColumnAlias($columnName, $counter, ClassMetadata $class = null) ``` All current quotes will be replaced by one default QuoteStrategy. That allows users find solutions themselves for weird quote cases. Related Tickets : http://www.doctrine-project.org/jira/browse/[DDC-1719](http://www.doctrine-project.org/jira/browse/DDC-1719) http://www.doctrine-project.org/jira/browse/[DDC-142](http://www.doctrine-project.org/jira/browse/DDC-142) http://www.doctrine-project.org/jira/browse/[DDC-1843](http://www.doctrine-project.org/jira/browse/DDC-1843) http://www.doctrine-project.org/jira/browse/[DDC-1831](http://www.doctrine-project.org/jira/browse/DDC-1831)
admin added the Improvement label 2026-01-22 13:48:30 +01:00
admin closed this issue 2026-01-22 13:48:31 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jun 25, 2012):

Comment created by @FabioBatSilva:

Fixed by : cb72219b11

@doctrinebot commented on GitHub (Jun 25, 2012): Comment created by @FabioBatSilva: Fixed by : https://github.com/doctrine/doctrine2/commit/cb72219b118c158c9b5344c4b81ff2b1a9149ab0
Author
Owner

@doctrinebot commented on GitHub (Jun 25, 2012):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Jun 25, 2012): Issue was closed with resolution "Fixed"
Author
Owner
@ouonet commented on GitHub (Jan 30, 2016): These Related Tickets missing http://www.doctrine-project.org/jira/browse/[DDC-1719](http://www.doctrine-project.org/jira/browse/DDC-1719) http://www.doctrine-project.org/jira/browse/[DDC-142](http://www.doctrine-project.org/jira/browse/DDC-142) http://www.doctrine-project.org/jira/browse/[DDC-1843](http://www.doctrine-project.org/jira/browse/DDC-1843) http://www.doctrine-project.org/jira/browse/[DDC-1831](http://www.doctrine-project.org/jira/browse/DDC-1831)。 could some one explain this problem ? thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2325