Skip to content

Commit

Permalink
Use setDirty(field) as true by default as the name suggest.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Jun 18, 2018
1 parent 920aee3 commit 9dd1b9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Datasource/EntityTrait.php
Expand Up @@ -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]);
Expand Down

0 comments on commit 9dd1b9b

Please sign in to comment.