Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1629

short namespace in targetEntity dont work

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Invalid
    • Affects Version/s: 2.2
    • Fix Version/s: 2.2.2
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      in 2.1.x this work

      /**

      • @ManyToOne(targetEntity="\Db:Cliente", cascade= {"ALL"})
        * @JoinColumn(name="cliente", referencedColumnName="telefono", nullable=false)
        * @var Db\modelo\Cliente
        */

        in 2.2 crash!

        PHP Fatal error: Uncaught exception 'Doctrine\\ORM\\Mapping
        MappingException' with message 'The target-entity Db:Cliente cannot be found in 'Lanzadora\\modelo
        Servicios#cliente'.' ....

        to use 2.2, i need update all Entities to this:

        /**
        * @ManyToOne(targetEntity="\Db\modelo\Cliente", cascade={"ALL"}

        )

      • @JoinColumn(name="cliente", referencedColumnName="telefono", nullable=false)
      • @var Db\modelo\Cliente
        */

      why it change?, is bug or planned?

      see DDC-1585 !!!

        Activity

        Juan Enrique Escobar Robles created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Fix Version/s 2.2.2 [ 10195 ]
        Fix Version/s 2.2.1 [ 10194 ]
        Hide
        Benjamin Eberlei added a comment -

        Iti shouldnt even work in 2.1, this is invalid.

        Show
        Benjamin Eberlei added a comment - Iti shouldnt even work in 2.1, this is invalid.
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Invalid [ 6 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13404 ] jira-feedback [ 15214 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15214 ] jira-feedback2 [ 17078 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17078 ] jira-feedback3 [ 19331 ]

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

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Juan Enrique Escobar Robles
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: