From 6b7d67b427e485bad9ebba7f19d7d95cefbecf37 Mon Sep 17 00:00:00 2001 From: Jarek Jakubowski Date: Fri, 8 Jun 2018 20:29:37 +0200 Subject: [PATCH] Add info about Doctrine not using constructor --- docs/en/reference/working-with-objects.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/reference/working-with-objects.rst b/docs/en/reference/working-with-objects.rst index 72d509262..1bff38a7c 100644 --- a/docs/en/reference/working-with-objects.rst +++ b/docs/en/reference/working-with-objects.rst @@ -28,7 +28,7 @@ Work that have not yet been persisted are lost. .. note:: Doctrine does NEVER touch the public API of methods in your entity - classes (getters and setters). + classes (like getters and setters) nor the constructor method. Instead, it uses reflection to set/get data from your 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.