From 407a387dab6703d9d52c1764b9ff735891f58aaf Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 12 Sep 2016 21:41:15 +0000 Subject: [PATCH] DirectorDatalistEntry: add shouldBeRemoved... ...fixes sync for DatalistEntries fixes #12715 --- library/Director/Objects/DirectorDatalistEntry.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/library/Director/Objects/DirectorDatalistEntry.php b/library/Director/Objects/DirectorDatalistEntry.php index cbc13ace..339fb376 100644 --- a/library/Director/Objects/DirectorDatalistEntry.php +++ b/library/Director/Objects/DirectorDatalistEntry.php @@ -10,6 +10,8 @@ class DirectorDatalistEntry extends DbObject protected $table = 'director_datalist_entry'; + private $shouldBeRemoved = false; + protected $defaultProperties = array( 'list_id' => null, 'entry_name' => null, @@ -17,6 +19,18 @@ class DirectorDatalistEntry extends DbObject 'format' => null, ); + + public function markForRemoval($remove = true) + { + $this->shouldBeRemoved = $remove; + return $this; + } + + public function shouldBeRemoved() + { + return $this->shouldBeRemoved; + } + public function onInsert() { }