[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


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 !!!

Comment by Benjamin Eberlei [ 03/Mar/12 ]

Iti shouldnt even work in 2.1, this is invalid.

Generated at Sun Aug 30 18:37:28 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.