Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2741

[GH-820] Added support for field options to FieldBuilder

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of apancutt:

      Url: https://github.com/doctrine/doctrine2/pull/820

      Message:

      Currently, there is no way of cleanly adding options to mapped fields using the FieldBuilder. This makes it impossible to provide the "unsigned" option using the fluid API.

      The current solution is to provide options directly to ClassMetadataInfo::mapField() but, for consistency in my project, I'd like to use the FieldBuilder.

      This patch adds two new methods allowing arbitrary options to be mapped to a field, and a shorthand method for enabling the "unsigned" option.

      Unit test included.

        Activity

        Hide
        Doctrine Bot added a comment -

        A related Github Pull-Request [GH-820] was closed:
        https://github.com/doctrine/doctrine2/pull/820

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-820] was closed: https://github.com/doctrine/doctrine2/pull/820

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Doctrine Bot
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: