Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-3226

Unable to escape field names in YAML notation

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Invalid
    • Affects Version/s: 2.4.2
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None
    • Environment:
      PHP Version 5.5.11
      MySQL 5.6.16
      Darwin Kernel Version 13.3.0
      Mac OS 10.9.3

      Description

      As in DDC-1759, I wanted to use some reserved words as my field names (same case: MySQL-backed key-value storage).
      DDC-1759 was resolved by escaping the column names in field annotations. However, I'm using YAML files to store my mappings, and I couldn't find a way to set up an escaped field name there.

        Activity

        Hide
        Marco Pivetta added a comment -

        Escaping fields is done via the backtick symbol ` in column mappings. This is not driver-specific, but applies to all mappings.

        Show
        Marco Pivetta added a comment - Escaping fields is done via the backtick symbol ` in column mappings. This is not driver-specific, but applies to all mappings.

          People

          • Assignee:
            Marco Pivetta
            Reporter:
            Stepan Anchugov
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: