DDC-1852: Doctrine\ORM\Tools\SchemaValidator should check validity of lifecycle callbacks #2332

Open
opened 2026-01-22 13:48:43 +01:00 by admin · 1 comment
Owner

Originally created by @doctrinebot on GitHub (Jun 4, 2012).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @ocramius:

The schema validator should analyze mapped lifecycle callbacks and:

a) if some lifecycle callbacks were defined, but no @HasLifecycleCallbacks annotation/mapping was set, warn the user
b) if some lifecycle callbacks were defined, but methods are not public, warn the user

Originally created by @doctrinebot on GitHub (Jun 4, 2012). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @ocramius: The schema validator should analyze mapped lifecycle callbacks and: a) if some lifecycle callbacks were defined, but no @HasLifecycleCallbacks annotation/mapping was set, warn the user b) if some lifecycle callbacks were defined, but methods are not public, warn the user
admin added the Improvement label 2026-01-22 13:48:43 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jun 4, 2012):

Comment created by @ocramius:

Existing PR at https://github.com/doctrine/doctrine2/pull/361

@doctrinebot commented on GitHub (Jun 4, 2012): Comment created by @ocramius: Existing PR at https://github.com/doctrine/doctrine2/pull/361
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2332