public beforeDelete ( Codesleeve\Stapler\ORM\StaplerableInterface $instance ) | ||
$instance | Codesleeve\Stapler\ORM\StaplerableInterface |
public function beforeDelete(StaplerableInterface $instance)
{
$this->instance = $instance;
if (!$this->preserve_files) {
$this->clear();
}
}