DirectorDatalistEntry: add shouldBeRemoved...
...fixes sync for DatalistEntries fixes #12715
This commit is contained in:
parent
04cae6f8f8
commit
407a387dab
|
@ -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()
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue