Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-9

Add support to "options" in XML Mapping Driver

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-ALPHA3
    • Fix Version/s: 2.0-ALPHA2
    • Component/s: Mapping Drivers, ORM
    • Security Level: All
    • Labels:
      None

      Description

      Currently users can't define configurable options for their custom types. To support a configurable approach, we should inject an options items that holds configuration data.

      Here is the suggested approach:

      <field name="..." type="mytype">
          <options>
              <option name="xxx" value="xxx"/> 
              ...
          </options>
          ... 
      </field>
      

      I already updated YAML and Annotations drivers to support it. XML is a little more complicated and required some changes in XSD file.

        Activity

        Hide
        Roman S. Borschel added a comment -

        This is supported in the XML driver we just need to update the xsd file.

        Show
        Roman S. Borschel added a comment - This is supported in the XML driver we just need to update the xsd file.

          People

          • Assignee:
            Roman S. Borschel
            Reporter:
            Roman S. Borschel
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: