DDC-835: Documentation for Association Mapping does not indicate that class names cannot have leading backslash #1032

Closed
opened 2026-01-22 12:59:26 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Oct 11, 2010).

Jira issue originally created by user pschwisow:

The comments for EntityManager::getClassMetadata state:
bq. The class name must be the fully-qualified class name without a leading backslash (as it is returned by get_class($obj)) or an aliased class name.

As this function is used for maintaining associations, this statement also applies to the targetEntity attribute for associations. Documentation for Association Mapping and Annotations Reference do not make it clear that Fully-Qualified Class Names cannot have leading backslashes.

Originally created by @doctrinebot on GitHub (Oct 11, 2010). Jira issue originally created by user pschwisow: The comments for EntityManager::getClassMetadata state: bq. The class name must be the fully-qualified class name without a leading backslash (as it is returned by get_class($obj)) or an aliased class name. As this function is used for maintaining associations, this statement also applies to the targetEntity attribute for associations. Documentation for [Association Mapping](http://www.doctrine-project.org/projects/orm/2.0/docs/reference/association-mapping/en) and [Annotations Reference](http://www.doctrine-project.org/projects/orm/2.0/docs/reference/annotations-reference/en) do not make it clear that Fully-Qualified Class Names cannot have leading backslashes.
admin added the Bug label 2026-01-22 12:59:26 +01:00
admin closed this issue 2026-01-22 12:59:28 +01:00
Author
Owner

@doctrinebot commented on GitHub (Oct 29, 2010):

Comment created by @beberlei:

Clarified this in the docs (i hope)

@doctrinebot commented on GitHub (Oct 29, 2010): Comment created by @beberlei: Clarified this in the docs (i hope)
Author
Owner

@doctrinebot commented on GitHub (Oct 29, 2010):

Issue was closed with resolution "Fixed"

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

No dependencies set.

Reference: doctrine/archived-orm#1032