From f1d87da9b6ed22d3945981fa567e5690e1631955 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Wed, 17 Feb 2021 20:17:52 +0200 Subject: [PATCH] comments fix --- application/Espo/ORM/BaseEntity.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/application/Espo/ORM/BaseEntity.php b/application/Espo/ORM/BaseEntity.php index 221314dc24..d61d899708 100644 --- a/application/Espo/ORM/BaseEntity.php +++ b/application/Espo/ORM/BaseEntity.php @@ -361,7 +361,7 @@ class BaseEntity implements Entity } /** - * Is an entity new. + * Whether an entity is new. */ public function isNew() : bool { @@ -369,7 +369,7 @@ class BaseEntity implements Entity } /** - * Set as not new. + * Set as not new. Meaning an entity is fetched or already saved. */ public function setAsNotNew() : void { @@ -377,7 +377,8 @@ class BaseEntity implements Entity } /** - * Whether an entity was saved. + * Whether an entity has been saved. An entity can be already saved but not yet set as not-new. + * To prevent inserting second time if save is called in an after-save hook. */ public function isSaved() : bool {