/**
  * Create and configure forn
  *
  * @param string $formClassName 
  * @author Łukasz Wojciechowski
  */
 public function createAndConfigureForm($formClassName)
 {
     $this->form = new $formClassName($this->object);
     $vs = $this->form->getValidatorSchema();
     foreach ($vs->getFields() as $fieldName => $validator) {
         $this->form->setValidator($fieldName, new sfValidatorPass());
     }
     if (isset($this->form['id'])) {
         unset($this->form['id']);
     }
     $formFieldNames = $this->getFieldNamesOfForm($this->form);
     $this->form->useFields($formFieldNames);
     // making form field default values available for widget XML config file placeholders
     foreach ($formFieldNames as $fieldName) {
         if (!in_array($fieldName, $this->deprecated_placeholders)) {
             $this->{$fieldName} = $this->object->getByName($fieldName, BasePeer::TYPE_FIELDNAME);
         }
     }
 }