From 9dd1b9b35d734762697604f665d2fac402246e53 Mon Sep 17 00:00:00 2001 From: Mark Sch Date: Mon, 18 Jun 2018 19:16:01 +0200 Subject: [PATCH] Use setDirty(field) as true by default as the name suggest. --- src/Datasource/EntityTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Datasource/EntityTrait.php b/src/Datasource/EntityTrait.php index 6a83ecb12bd..1d4add1a135 100644 --- a/src/Datasource/EntityTrait.php +++ b/src/Datasource/EntityTrait.php @@ -805,10 +805,10 @@ public function dirty($property = null, $isDirty = null) * * @param string $property the field to set or check status for * @param bool $isDirty true means the property was changed, false means - * it was not changed + * it was not changed. Defaults to true. * @return $this */ - public function setDirty($property, $isDirty) + public function setDirty($property, $isDirty = true) { if ($isDirty === false) { unset($this->_dirty[$property]);