Skip to content

Commit

Permalink
doc: Remove wakeup and clone cookbook (#2663)
Browse files Browse the repository at this point in the history
* Remove wakeup and clone cookbook
* Implemeting __clone and __wakeup is not an issue
  • Loading branch information
GromNaN authored Jul 1, 2024
1 parent f57fcc3 commit ffd77f9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 84 deletions.
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

0 comments on commit ffd77f9

Please sign in to comment.