option to move entries from one entity to another upon deletion (#409)
This commit is contained in:
@@ -21,6 +21,30 @@ class ProjectQuery extends VisibilityQuery
|
||||
*/
|
||||
protected $customer;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $ignored = [];
|
||||
|
||||
/**
|
||||
* @param mixed $entity
|
||||
* @return $this
|
||||
*/
|
||||
public function addIgnoredEntity($entity)
|
||||
{
|
||||
$this->ignored[] = $entity;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getIgnoredEntities()
|
||||
{
|
||||
return $this->ignored;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Customer|int
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user