Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-740

Mantain a list of DQL reserved keywords

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Documentation
    • Security Level: All
    • Labels:
      None

      Description

      We should keep a list of DQ reserved keywords, so users can check out what they can use or not.

        Activity

        Hide
        Manasi added a comment -

        Here is the list of reserved keywords for MySQL: http://dev.mysql.com/doc/refman/5.0/en/reserved-words.html
        The documentation does not clearly mention that the backticks for a column with a reserved keyword in the ORM mapping file. This file could be in xml, yaml or php.
        So,the right way to apply backticks is: <field name="group" type="string" column="`group`" length="32" nullable="false"/>

        Show
        Manasi added a comment - Here is the list of reserved keywords for MySQL: http://dev.mysql.com/doc/refman/5.0/en/reserved-words.html The documentation does not clearly mention that the backticks for a column with a reserved keyword in the ORM mapping file. This file could be in xml, yaml or php. So,the right way to apply backticks is: <field name="group" type="string" column="`group`" length="32" nullable="false"/>

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Guilherme Blanco
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: