src/Forms/SelectField.php
public function castedCopy($classOrCopy)
    {
        $field = parent::castedCopy($classOrCopy);
        if ($field instanceof SelectField) {
            $field->setSource($this->getSource());
        }
        return $field;
    }
public function castedCopy($classOrCopy)
    {
        $field = parent::castedCopy($classOrCopy);
        if ($field instanceof SelectField) {
            $field->setSource($this->getSource());
        }
        return $field;
    }
public function castedCopy ( $ classOrCopy ) { $ field = parent :: castedCopy ( $ classOrCopy ) ; if ( $ field instanceof SelectField ) { $ field -> setSource ( $ this -> getSource ( ) ) ; } return $ field ; }
Returns another instance of this field, but "cast" to a different class.

@see FormField::castedCopy()

@param String $classOrCopy
@return FormField
Returns another instance of this field but cast to a different class .