sfFormPropel::setDeleteWidget PHP Method

setDeleteWidget() public method

If the bound widget value is true, then the related object will be deleted
public setDeleteWidget ( string $name, sfWidgetForm $widget ) : sfPropelForm
$name string The field name
$widget sfWidgetForm The widget
return sfPropelForm The current form instance
    public function setDeleteWidget($name, $widget)
    {
        $this->setWidget($name, $widget);
        $this->setValidator($name, new sfValidatorPass(array('required' => false)));
        $this->setDeleteField($name);
        return $this;
    }