1
0
mirror of synced 2025-02-02 13:31:45 +03:00

Merge pull request #7253 from JarJak/patch-2

Mention that Doctrine does not use Entities public API
This commit is contained in:
Marco Pivetta 2018-06-09 07:28:20 +02:00 committed by GitHub
commit 88d1d79516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,13 @@ Work that have not yet been persisted are lost.
Not calling ``EntityManager#flush()`` will lead to all changes
during that request being lost.
.. note::
Doctrine does NEVER touch the public API of methods in your entity
classes (like getters and setters) nor the constructor method.
Instead, it uses reflection to get/set data from/to your entity objects.
When Doctrine fetches data from DB and saves it back,
any code put in your get/set methods won't be implicitly taken into account.
Entities and the Identity Map
-----------------------------