Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1524

NamedQueries annotation doesn't work with just one NamedQuery

    Details

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

      Description

      NamedQueries annotation doesn't work with just one NamedQuery

      the problem is locale in the class Doctrine\ORM\Mapping\Driver\AnnotationDriver line 179.

      Is needed validate if var $namedQueriesAnnot->value is an array before try perform foreach statement.

      Please I'm sorry for my bad English.

      Thank you

        Activity

        Thiago Luiz Alves created issue -
        Hide
        Benjamin Eberlei added a comment -

        Why dont you define the named queries as array? just @NamedQuery(

        {...}

        ) ?

        Also please consider attaching a diff of your patch, not the whole changed class.

        Show
        Benjamin Eberlei added a comment - Why dont you define the named queries as array? just @NamedQuery( {...} ) ? Also please consider attaching a diff of your patch, not the whole changed class.
        Hide
        Benjamin Eberlei added a comment -

        Added better validations.

        Show
        Benjamin Eberlei added a comment - Added better validations.
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.2-DEV [ 10157 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13248 ] jira-feedback [ 15137 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15137 ] jira-feedback2 [ 17001 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17001 ] jira-feedback3 [ 19254 ]

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

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Thiago Luiz Alves
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: