/**
  * Unpublishing Versioning support
  *
  * When unpublishing the field it has to remove all options attached
  *
  * @return void
  */
 public function doDeleteFromStage($stage)
 {
     // Remove options
     $options = Versioned::get_by_stage('EditableOption', $stage)->filter('ParentID', $this->ID);
     foreach ($options as $option) {
         $option->deleteFromStage($stage);
     }
     parent::doDeleteFromStage($stage);
 }