File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,8 @@ Configuration Options
7676The following sections describe all the configuration options
7777available on a ``Doctrine\ORM\Configuration `` instance.
7878
79+ .. _reference-native-lazy-objects :
80+
7981Native Lazy Objects (**OPTIONAL **)
8082~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8183
Original file line number Diff line number Diff line change @@ -79,8 +79,9 @@ Entities
7979An entity is a lightweight, persistent domain object. An entity can
8080be any regular PHP class observing the following restrictions:
8181
82- - An entity class must not be final nor read-only but
83- it may contain final methods or read-only properties.
82+ - An entity class can be final or read-only when
83+ you use :ref: `native lazy objects <reference-native-lazy-objects >`.
84+ It may contain final methods or read-only properties too.
8485- Any two entity classes in a class hierarchy that inherit
8586 directly or indirectly from one another must not have a mapped
8687 property with the same name. That is, if B inherits from A then B
Original file line number Diff line number Diff line change @@ -49,8 +49,9 @@ An entity contains persistable properties. A persistable property
4949is an instance variable of the entity that is saved into and retrieved from the database
5050by Doctrine's data mapping capabilities.
5151
52- An entity class must not be final nor read-only, although
53- it can contain final methods or read-only properties.
52+ An entity class can be final or read-only when you use
53+ :ref: `native lazy objects <reference-native-lazy-objects >`.
54+ It may contain final methods or read-only properties too.
5455
5556An Example Model: Bug Tracker
5657-----------------------------
You can’t perform that action at this time.
0 commit comments