DDC-575: Ignoring some annotations #707

Open
opened 2026-01-22 12:47:34 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (May 7, 2010).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user drevolution:

Some placement of handler annotation is ignored.

PrePersist is ignored:

/****
 * @PrePersist
 *
 * Will trigger error.
 */
public function error()
{
    trigger_error('ERROR');
}

PrePersist works fine:

/****
 * @PrePersist
 * @foo
 *
 * Will trigger error.
 */
public function error()
{
    trigger_error('ERROR');
}
Originally created by @doctrinebot on GitHub (May 7, 2010). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user drevolution: Some placement of handler annotation is ignored. PrePersist is ignored: ``` /**** * @PrePersist * * Will trigger error. */ public function error() { trigger_error('ERROR'); } ``` PrePersist works fine: ``` /**** * @PrePersist * @foo * * Will trigger error. */ public function error() { trigger_error('ERROR'); } ```
admin added the Bug label 2026-01-22 12:47:34 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#707