DDC-1629: short namespace in targetEntity dont work #2048

Closed
opened 2026-01-22 13:38:41 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Jan 31, 2012).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user mazhack:

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

Originally created by @doctrinebot on GitHub (Jan 31, 2012). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user mazhack: 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](http://www.doctrine-project.org/jira/browse/DDC-1585) !!!
admin added the Bug label 2026-01-22 13:38:41 +01:00
admin closed this issue 2026-01-22 13:38:41 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 3, 2012):

Comment created by @beberlei:

Iti shouldnt even work in 2.1, this is invalid.

@doctrinebot commented on GitHub (Mar 3, 2012): Comment created by @beberlei: Iti shouldnt even work in 2.1, this is invalid.
Author
Owner

@doctrinebot commented on GitHub (Mar 3, 2012):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Mar 3, 2012): Issue was closed with resolution "Invalid"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2048