setWidgets(array( 'id' => new sfWidgetFormInputHidden(), 'name' => new sfWidgetFormInput(), 'begin_at' => new sfWidgetFormDateTime(), 'finish_at' => new sfWidgetFormDateTime(), 'order_ended_at' => new sfWidgetFormDateTime(), 'status' => new sfWidgetFormInput(), 'exported' => new sfWidgetFormInput(), 'created_at' => new sfWidgetFormDateTime(), 'updated_at' => new sfWidgetFormDateTime(), )); $this->setValidators(array( 'id' => new sfValidatorPropelChoice(array('model' => 'KataoPeriod', 'column' => 'id', 'required' => false)), 'name' => new sfValidatorString(array('max_length' => 255)), 'begin_at' => new sfValidatorDateTime(), 'finish_at' => new sfValidatorDateTime(), 'order_ended_at' => new sfValidatorDateTime(), 'status' => new sfValidatorInteger(), 'exported' => new sfValidatorInteger(array('required' => false)), 'created_at' => new sfValidatorDateTime(array('required' => false)), 'updated_at' => new sfValidatorDateTime(array('required' => false)), )); $this->widgetSchema->setNameFormat('katao_period[%s]'); $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema); parent::setup(); } public function getModelName() { return 'KataoPeriod'; } }