DirectorDatalistEntry: add shouldBeRemoved...

...fixes sync for DatalistEntries

fixes #12715
This commit is contained in:
Thomas Gelf 2016-09-12 21:41:15 +00:00
parent 04cae6f8f8
commit 407a387dab
1 changed files with 14 additions and 0 deletions

View File

@ -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()
{
}