This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class BaseDoctrineForm extends sfFormDoctrine | |
{ | |
public function __construct($object = null, $options = array(), $CSRFSecret = null) | |
{ | |
parent::__construct($object, $options, $CSRFSecret); | |
// tell the widget schema which fields are required | |
$this->widgetSchema->addOption('required_fields', $this->getRequiredFields()); |