Doctrine MongoDB ODM
  1. Doctrine MongoDB ODM
  2. MODM-19

Field annotation missing "name" support

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0ALPHA1
    • Fix Version/s: 1.0.0ALPHA2
    • Component/s: Mapping Drivers
    • Labels:
      None

      Description

      Documentation states that field names can be overriden by using a "name" parameter but Doctrine throws exception.
      Also there is a missing comma in the documentation between the type and name params.

      From documentation:

      http://www.doctrine-project.org/projects/mongodb_odm/1.0/docs/reference/annotations-reference/en#ann_field

      Unable to find source-code formatter for language: php. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
      /**
       * @Field(type="string" name="origin")
       */
      protected $country;
      

      My source code:

      Unable to find source-code formatter for language: php. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
          /**
           * @Field(type="string", name="password")
          **/
          protected $_password;
      

      Exception:

      BadMethodCallException:
      Unknown property 'name' on annotation 'Doctrine\ODM\MongoDB\Mapping\Field'.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Rabbit
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: