1
0
mirror of synced 2025-03-05 20:36:15 +03:00

Update en/reference/architecture.rst

This commit is contained in:
Benjamin Eberlei 2012-01-05 10:28:46 +01:00
parent ae1c171392
commit 442227fc89

View File

@ -15,7 +15,8 @@ be any regular PHP class observing the following restrictions:
- An entity class must not be final or contain final methods. - An entity class must not be final or contain final methods.
- All persistent properties/field of any entity class should - All persistent properties/field of any entity class should
always be private or protected, otherwise lazy-loading might not always be private or protected, otherwise lazy-loading might not
work as expected. work as expected. In case you serialize entities (for example Session)
properties should be protected (See Serialize section below).
- An entity class must not implement ``__clone`` or - An entity class must not implement ``__clone`` or
:doc:`do so safely <../cookbook/implementing-wakeup-or-clone>`. :doc:`do so safely <../cookbook/implementing-wakeup-or-clone>`.
- An entity class must not implement ``__wakeup`` or - An entity class must not implement ``__wakeup`` or