[PR #903] [CLOSED] Avoid registering and invoking lifecycle callbacks multiple times #8878

Open
opened 2026-01-22 16:02:06 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/903
Author: @jwage
Created: 1/9/2014
Status: Closed

Base: masterHead: double-lifecycle-callbacks-test


📝 Commits (1)

  • c9d49ef Do not allow duplicate lifecycle callbacks to be registered

📊 Changes

8 files changed (+263 additions, -13 deletions)

View changed files

📝 lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php (+5 -1)
tests/Doctrine/Tests/ORM/Functional/HasLifecycleCallbacksTest.php (+246 -0)
📝 tests/Doctrine/Tests/ORM/Functional/LifecycleCallbackTest.php (+1 -1)
📝 tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1655Test.php (+2 -2)
📝 tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php (+3 -3)
📝 tests/Doctrine/Tests/ORM/Mapping/AnnotationDriverTest.php (+2 -2)
📝 tests/Doctrine/Tests/ORM/Mapping/ClassMetadataBuilderTest.php (+1 -1)
📝 tests/Doctrine/Tests/ORM/Tools/Export/AbstractClassMetadataExporterTest.php (+3 -3)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/903 **Author:** [@jwage](https://github.com/jwage) **Created:** 1/9/2014 **Status:** ❌ Closed **Base:** `master` ← **Head:** `double-lifecycle-callbacks-test` --- ### 📝 Commits (1) - [`c9d49ef`](https://github.com/doctrine/orm/commit/c9d49ef8eca14c6c92944dbb4386218b9e1ac11d) Do not allow duplicate lifecycle callbacks to be registered ### 📊 Changes **8 files changed** (+263 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php` (+5 -1) ➕ `tests/Doctrine/Tests/ORM/Functional/HasLifecycleCallbacksTest.php` (+246 -0) 📝 `tests/Doctrine/Tests/ORM/Functional/LifecycleCallbackTest.php` (+1 -1) 📝 `tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1655Test.php` (+2 -2) 📝 `tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php` (+3 -3) 📝 `tests/Doctrine/Tests/ORM/Mapping/AnnotationDriverTest.php` (+2 -2) 📝 `tests/Doctrine/Tests/ORM/Mapping/ClassMetadataBuilderTest.php` (+1 -1) 📝 `tests/Doctrine/Tests/ORM/Tools/Export/AbstractClassMetadataExporterTest.php` (+3 -3) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 16:02:06 +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#8878