| 5 | | public function configure() |
| 6 | | { |
| 7 | | $this->useFields(); |
| 8 | | $q = Doctrine::getTable('aEvent')->addCategories(); |
| 9 | | $this->setWidget('blog_categories_list', new sfWidgetFormDoctrineChoice(array('multiple' => true, 'query' => $q, 'model' => 'aBlogCategory'))); |
| 10 | | $this->widgetSchema->setLabel('blog_categories_list', 'blog Categories'); |
| 11 | | $this->widgetSchema->setHelp('blog_categories_list','(Defaults to All Cateogories)'); |
| 12 | | $this->setValidator('blog_categories_list', new sfValidatorDoctrineChoice(array('multiple' => true, 'query' => $q, 'model' => 'aBlogCategory', 'required' => false))); |
| 13 | | $this->widgetSchema->setNameFormat('enginesettings[%s]'); |
| 14 | | $this->widgetSchema->setFormFormatterName('aAdmin'); |
| 15 | | } |