public function setUp()
 {
     $this->getObject()->setType('model');
     parent::setUp();
     $config = $this->getRelatedObject()->getAttachableConfig('attachableModels');
     //Currently only allows for a single model
     $choices = $this->getArrayFromCollection(Doctrine_Core::getTable($config[0])->findAll());
     $this->widgetSchema['url'] = new sfWidgetFormChoice(array('choices' => $choices));
     $this->validatorSchema['url'] = new sfValidatorString();
 }
 public function setUp()
 {
     $this->getObject()->setType('video');
     parent::setUp();
 }
 protected function setupInheritance()
 {
     parent::setupInheritance();
     $this->widgetSchema->setNameFormat('image_attachment[%s]');
 }
 public function setUp()
 {
     $this->getObject()->setType('document');
     $this->prepare(array('mimetypes' => array('text/plain', 'application/msword', 'application/pdf', 'application/rtf', 'text/richtext')));
     parent::setUp();
 }
 public function setUp()
 {
     $this->getObject()->setType('image');
     $this->prepare(array('mimetypes' => array('image/jpeg', 'image/pjpeg', 'image/png', 'image/x-png', 'image/gif')));
     parent::setUp();
 }