Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.3
-
Component/s: Mapping Drivers
-
Security Level: All
-
Labels:None
Description
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