Update en/reference/architecture.rst
This commit is contained in:
parent
ae1c171392
commit
442227fc89
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user