Definition::delete PHP Method

delete() public method

Delete the related source type
public delete ( )
    public function delete()
    {
        $source_type = $this->source()->first();
        $source_type->delete();
        parent::delete();
    }