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

Closed
doctrinebot opened this Issue Jan 31, 2012 · 2 comments

2 participants

@doctrinebot

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

@doctrinebot

Comment created by @beberlei:

Iti shouldnt even work in 2.1, this is invalid.

@doctrinebot

Issue was closed with resolution "Invalid"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.2.2 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment