Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-998

Code example for custom AST functions incorrect

    Details

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

      Description

      On http://www.doctrine-project.org/docs/orm/2.0/en/reference/dql-doctrine-query-language.html#adding-your-own-functions-to-the-dql-language the code example is slightly incorrect.

      Mistakes:

      • Lexer::T_ABS doesn't exist anymore, I assume Lexer::T_IDENTIFIER is what one wants to use
      • Missing use for \Doctrine\ORM\Query\Lexer

      Additionally, the section should tell the user that he best has a look at lib/Doctrine/ORM/Query/AST/Functions/* to learn how to write custom functions. It also could be noted that stored procedures can be called with custom functions.

        Activity

        Timo A. Hummel created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Workflow jira [ 12318 ] jira-feedback [ 13902 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 13902 ] jira-feedback2 [ 15766 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 15766 ] jira-feedback3 [ 18023 ]

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

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Timo A. Hummel
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: