[DDC-1629] short namespace in targetEntity dont work Created: 31/Jan/12  Updated: 03/Mar/12  Resolved: 03/Mar/12

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: None
Affects Version/s: 2.2
Fix Version/s: 2.2.2
Security Level: All

Type: Bug Priority: Trivial
Reporter: Juan Enrique Escobar Robles Assignee: Benjamin Eberlei
Resolution: Invalid Votes: 1
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 !!!



 Comments   
Comment by Benjamin Eberlei [ 03/Mar/12 ]

Iti shouldnt even work in 2.1, this is invalid.

Generated at Sat Aug 30 14:26:43 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.