Doctrine Website
  1. Doctrine Website
  2. DWEB-54

Doctrine 2 Documentation - Yaml Mapping

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Component/s: None
    • Labels:
      None

      Description

      The current documentation for the Doctrine2 YAML Mapping ( found here: http://www.doctrine-project.org/projects/orm/2.0/docs/reference/yaml-mapping/en#yaml-mapping )

      introduces a wrong format for the identifier colum specification.

      I had to go dig around in the source code to find the correct format.
      For anyone less persistent or not accustomed to check the source code of a library this would result in serious headache.

      WRONG:
      id:
      id:
      type: integer
      generator:
      strategy: AUTO

      RIGHT: (at least with current trunk )
      id:
      type: integer
      id: true
      generator:
      strategy: AUTO

        Activity

        Chris created issue -
        Hide
        Markus Wößner added a comment -

        It should also be documented how a DB column name other than the field name can be defined. http://www.doctrine-project.org/documentation/manual/2_0/en/basic-mapping#property-mapping suggests "name" would be the correct key. Yet the valid key is "column". Like Chris I had to dig through the code. Well, at least I came to know it.

        Show
        Markus Wößner added a comment - It should also be documented how a DB column name other than the field name can be defined. http://www.doctrine-project.org/documentation/manual/2_0/en/basic-mapping#property-mapping suggests "name" would be the correct key. Yet the valid key is "column". Like Chris I had to dig through the code. Well, at least I came to know it.

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DWEB-54, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated: