Fix docs on final entities#12176
Conversation
docs/en/reference/architecture.rst
Outdated
| - An entity class must not be final nor read-only but | ||
| it may contain final methods or read-only properties. | ||
| - An entity class can be final or read-only when | ||
| you use :ref:`native lazy object<reference-native-lazy-objects>`. |
There was a problem hiding this comment.
| you use :ref:`native lazy object<reference-native-lazy-objects>`. | |
| you use :ref:`native lazy objects<reference-native-lazy-objects>`. |
docs/en/reference/architecture.rst
Outdated
| it may contain final methods or read-only properties. | ||
| - An entity class can be final or read-only when | ||
| you use :ref:`native lazy object<reference-native-lazy-objects>`. | ||
| It may always contain final methods or read-only properties. |
There was a problem hiding this comment.
Did you mean to say "also" instead of "always"?
There was a problem hiding this comment.
Did you mean to say "also" instead of "always"?
Nope. The properties can be final/ro in any case, so "always" is correct.
There was a problem hiding this comment.
Ok… feels a bit weird that you don't use the same wording for the entity and its methods. Also, it's unclear what cases you are thinking about when you say "in any case"
There was a problem hiding this comment.
Ah I get it, it's when using native lazy objects or not 💡
There was a problem hiding this comment.
Then I think I would reverse it: An entity class may contain final methods or read-only properties, and can be final or read-only as soon as you use…
There was a problem hiding this comment.
| It may always contain final methods or read-only properties. | |
| It may contain final methods or read-only properties too. |
73ec5c0 to
a3790e3
Compare
docs/en/reference/architecture.rst
Outdated
| it may contain final methods or read-only properties. | ||
| - An entity class can be final or read-only when | ||
| you use :ref:`native lazy object<reference-native-lazy-objects>`. | ||
| It may always contain final methods or read-only properties. |
There was a problem hiding this comment.
| It may always contain final methods or read-only properties. | |
| It may contain final methods or read-only properties too. |
a3790e3 to
e46e641
Compare
* 3.5.x: Add a CI job that fails on deprecations (doctrine#12188) use the empty string instead of null as an array offset (doctrine#12181) do not call setAccessible() on PHP >= 8.1 (doctrine#12182) Fix docs on final entities (doctrine#12176) Remove Database and Model First chapters that said little of value. Switch to IgnoreDeprecations docs: consistent PostgreSQL's name case docs: generation strategies differences between DBAL 3 and 4 Check extra condition to decide if a test was skipped Use PHPUnit 11 when possible Migrate away from annotations in tests Migrate away from assertStringNotMatchesFormat() Migrate to willReturn() Migrate away from getMockForAbstractClass() Fix `IN`/`NOT IN` expression handling and support enums when matching on to-many-collections
* 3.6.x: Add a CI job that fails on deprecations (doctrine#12188) use the empty string instead of null as an array offset (doctrine#12181) do not call setAccessible() on PHP >= 8.1 (doctrine#12182) Fix docs on final entities (doctrine#12176) Remove Database and Model First chapters that said little of value. Switch to IgnoreDeprecations Fix php doc for getPropertyAccessors method (doctrine#12159) docs: consistent PostgreSQL's name case docs: generation strategies differences between DBAL 3 and 4 Check extra condition to decide if a test was skipped Use PHPUnit 11 when possible Migrate away from annotations in tests Migrate away from assertStringNotMatchesFormat() Migrate to willReturn() Migrate away from getMockForAbstractClass() Fix `IN`/`NOT IN` expression handling and support enums when matching on to-many-collections
* 3.6.x: Fix missing import Remove calls to getMockForAbstractClass() (doctrine#12003) Add a CI job that fails on deprecations (doctrine#12188) use the empty string instead of null as an array offset (doctrine#12181) Upgrade to doctrine/coding-standard 14 Bump doctrine/.github from 7.3.0 to 8.0.0 do not call setAccessible() on PHP >= 8.1 (doctrine#12182) Fix docs on final entities (doctrine#12176) Remove Database and Model First chapters that said little of value. Switch to IgnoreDeprecations Fix php doc for getPropertyAccessors method (doctrine#12159) docs: consistent PostgreSQL's name case docs: generation strategies differences between DBAL 3 and 4 Check extra condition to decide if a test was skipped Use PHPUnit 11 when possible Migrate away from annotations in tests Migrate away from assertStringNotMatchesFormat() Migrate to willReturn() Migrate away from getMockForAbstractClass() Fix `IN`/`NOT IN` expression handling and support enums when matching on to-many-collections
Fix #12156
I'm not sure about the wording. I'm open to suggestions.