コード例 #1
0
 public function castedCopy($classOrCopy)
 {
     $field = parent::castedCopy($classOrCopy);
     if ($field instanceof SingleSelectField && $this->getHasEmptyDefault()) {
         $field->setEmptyString($this->getEmptyString());
     }
     return $field;
 }