Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Remove wakeup and clone cookbook #2663

Merged
merged 2 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 0 additions & 77 deletions docs/en/cookbook/implementing-wakeup-or-clone.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/en/reference/architecture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ be any regular PHP class observing the following restrictions:
- All persistent properties/field of any document class should
always be private or protected, otherwise lazy-loading might not
work as expected.
- A document class must not implement ``__clone`` or
:doc:`do so safely <../cookbook/implementing-wakeup-or-clone>`.
- A document class must not implement ``__wakeup`` or
:doc:`do so safely <../cookbook/implementing-wakeup-or-clone>`.
Also consider implementing
`Serializable <https://www.php.net/manual/en/class.serializable.php>`_
instead.
- Any two document classes in a class hierarchy that inherit
directly or indirectly from one another must not have a mapped
property with the same name. That is, if B inherits from A then B
Expand Down
Loading