Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1605

No documentation about the usage of indexes with YAML and XML

    Details

    • Type: Documentation Documentation
    • Status: In Progress
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Documentation
    • Security Level: All
    • Labels:

      Description

      I am missing documentation about how to handle indexes in YAML and XML definition files. I had to search in the code to learn how to do that.
      Please add some documentation about it.

      This issue is related to #DDC-160 where the reporter asked for documentation about indexes in annotation mapping.

      EDIT:
      Maybe an example how I have done it with YAML would be helpful for others:

      User:
        type: entity
        fields:
          id:
            id: true
            type: integer
            generator:
              strategy: IDENTITY
          email:
            type: string
            length: 150
            unique: true
          active:
            type: boolean
        indexes:
          indexActiveField: { name: idx_user_active, columns: [ active ] }
      

      indexActiveField is the name of the index used by doctrine and idx_user_active is the name of the index in the database. The rest should be clear.

        Activity

        Christian Stoller created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Workflow jira [ 13366 ] jira-feedback [ 14012 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 14012 ] jira-feedback2 [ 15876 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 15876 ] jira-feedback3 [ 18132 ]
        Alexandr Lukyanchikov made changes -
        Status Open [ 1 ] Awaiting Feedback [ 10000 ]
        Hide
        Christian Stoller added a comment - - edited

        Hi. I got an email notification that arbuscula has changed the status to "Awaiting Feedback". Do you need any feedback from me?

        Show
        Christian Stoller added a comment - - edited Hi. I got an email notification that arbuscula has changed the status to "Awaiting Feedback". Do you need any feedback from me?
        Christian Stoller made changes -
        Summary No documentation about the usage of indexes No documentation about the usage of indexes with YAML and XML
        Description I am missing documentation about how to handle indexes in YAML and XML definition files. I had to search in the code to learn how to do that.
        Please add some documentation about it.

        This issue is related to #DDC-160 where the reporter asked for documentation about indexes in annotation mapping.
        I am missing documentation about how to handle indexes in YAML and XML definition files. I had to search in the code to learn how to do that.
        Please add some documentation about it.

        This issue is related to #DDC-160 where the reporter asked for documentation about indexes in annotation mapping.

        EDIT:
        Maybe an example how I have done it with YAML would be helpful for others:
        {code}
        User:
          type: entity
          fields:
            id:
              id: true
              type: integer
              generator:
                strategy: IDENTITY
            email:
              type: string
              length: 150
              unique: true
            active:
              type: boolean
          indexes:
            indexActiveField: { name: idx_user_active, columns: [ active ] }
        {code}

        {{indexActiveField}} is the name of the index used by doctrine and {{idx_user_active}} is the name of the index in the database. The rest should be clear.
        Priority Critical [ 2 ] Major [ 3 ]
        Labels documentation
        made changes -
        Status Awaiting Feedback [ 10000 ] In Progress [ 3 ]

        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=DDC-1605, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated: