class DeleteRecordPolicy implements DeletePolicy (View source)

A policy that deletes the root record

Properties

protected DeletePolicy[] $dependantPolicies

List of dependant policies

Methods

public
getDependantPolicies()

No description

public
$this
setDependantPolicies(DeletePolicy[] $dependantPolicies)

No description

public
bool
delete(DataObject $record)

No description

protected
deleteBaseRecord(DataObject $record)

Do base record deletion

protected
mixed
getTargetTables(DataObject $record)

Generate table list to delete base record

Details

DeletePolicy[] getDependantPolicies()

No description

Return Value

DeletePolicy[]

$this setDependantPolicies(DeletePolicy[] $dependantPolicies)

No description

Parameters

DeletePolicy[] $dependantPolicies

Return Value

$this

bool delete(DataObject $record)

No description

Parameters

DataObject $record

Return Value

bool

Determines if any dependent objects block upstream deletion (e.g. db / model constraints) If this returns true, then there are additional conditions that must be satisfied before upstream relational constraints are safe to delete. If this returns true, then all downstream entities are reported purged, and upstream relational constraints can be deleted.

protected deleteBaseRecord(DataObject $record)

Do base record deletion

Parameters

DataObject $record

protected mixed getTargetTables(DataObject $record)

Generate table list to delete base record

Parameters

DataObject $record

Return Value

mixed