123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * ProfessionsTable form base class.
- *
- * @package usic
- * @subpackage form
- * @author Your name here
- * @version SVN: $Id: sfPropelFormGeneratedTemplate.php 15484 2009-02-13 13:13:51Z fabien $
- */
- class BaseProfessionsTableForm extends BaseFormPropel
- {
- public function setup()
- {
- $this->setWidgets(array(
- 'id' => new sfWidgetFormInputHidden(),
- 'name' => new sfWidgetFormInput(),
- ));
- $this->setValidators(array(
- 'id' => new sfValidatorPropelChoice(array('model' => 'ProfessionsTable', 'column' => 'id', 'required' => false)),
- 'name' => new sfValidatorString(array('max_length' => 20)),
- ));
- $this->widgetSchema->setNameFormat('professions_table[%s]');
- $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
- parent::setup();
- }
- public function getModelName()
- {
- return 'ProfessionsTable';
- }
- }
|