DDC-1325: Adding @Target to annotations #1663

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

Originally created by @doctrinebot on GitHub (Aug 10, 2011).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user johannes:

Now that the annotation parser has support for the @Target annotation, we should also add it to the annotations of the ORM.

I have looked through the mapping file, but I'm not familiar with all the annotations, so someone else is probably better suited to add them.

Usage is as follows:

@Target("CLASS") for a single target
@Target({"CLASS", "METHOD", "PROPERTY", "ANNOTATION"}) for multiple targets (annotation if it can be used as a nested annotation)

Originally created by @doctrinebot on GitHub (Aug 10, 2011). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user johannes: Now that the annotation parser has support for the @Target annotation, we should also add it to the annotations of the ORM. I have looked through the mapping file, but I'm not familiar with all the annotations, so someone else is probably better suited to add them. Usage is as follows: @Target("CLASS") for a single target @Target({"CLASS", "METHOD", "PROPERTY", "ANNOTATION"}) for multiple targets (annotation if it can be used as a nested annotation)
admin added the Improvement label 2026-01-22 13:21:31 +01:00
admin closed this issue 2026-01-22 13:21:32 +01:00
Author
Owner

@doctrinebot commented on GitHub (Aug 14, 2011):

Comment created by @beberlei:

Resolved

@doctrinebot commented on GitHub (Aug 14, 2011): Comment created by @beberlei: Resolved
Author
Owner

@doctrinebot commented on GitHub (Aug 14, 2011):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Aug 14, 2011): 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#1663