Source of file DeletePolicy.php
Size: 0,663 Bytes - Last Modified: 2021-12-23T10:53:31+00:00
/var/www/docs.ssmods.com/process/src/src/Model/Delete/DeletePolicy.php
12345678910111213141516171819 | <?php namespace TractorCow\Fluent\Model\Delete; use SilverStripe\ORM\DataObject; interface DeletePolicy { /** * @param DataObject $record * @return 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. */ public function delete(DataObject $record); } |