/** * Remove associated Fields on delete. */ function destroyFields() { Field::deleteBySQL('block_id = ?', array($this->id)); }