mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3985: Drop support for same-namespace names resolution #4862
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Nov 8, 2015).
Originally assigned to: @Majkl578 on GitHub.
Jira issue originally created by user @ocramius:
When resolving target classes, the ORM currently allows to reference classes in the same namespace via their short name.
Given a class
Foo\Bar\Baz, when referencing a classFoo\Bar\Tab, it is possible to simply reference it asTabinside the mappings ofFoo\Bar\Baz.This is just a useless complication that causes confusion and makes introspection harder. Additionally, since annotation mappings support the
::classmeta-constant, it now is a useless feature, as the PHP namespace system already solves the problem.Therefore, this sort of "magic resolving" should be dropped.
@doctrinebot commented on GitHub (Nov 8, 2015):
@Majkl578 commented on GitHub (Jan 12, 2018):
Handled in #6936.