/**
  * @inherited
  */
 protected function buildForm()
 {
     $translator = Translator::getInstance();
     BaseProductCreationForm::buildForm();
     $this->formBuilder->add("brand_id", "integer", ['required' => true, 'label' => $translator->trans('Brand / Supplier'), 'label_attr' => ['for' => 'mode', 'help' => $translator->trans("Select the product brand, or supplier.")]]);
     $this->addStandardDescFields(array('title', 'locale'));
 }
 protected function buildForm()
 {
     parent::buildForm(true);
     $this->formBuilder->add("id", "integer", array("label" => Translator::getInstance()->trans("Prodcut ID *"), "label_attr" => array("for" => "product_id_field"), "constraints" => array(new GreaterThan(array('value' => 0)))))->add("template_id", "integer", array("label" => Translator::getInstance()->trans("Product template"), "label_attr" => array("for" => "product_template_field")))->add("brand_id", "integer", ['constraints' => [new NotBlank()], 'required' => true, 'label' => Translator::getInstance()->trans('Brand / Supplier'), 'label_attr' => ['for' => 'mode', 'help' => Translator::getInstance()->trans("Select the product brand, or supplier.")]])->add("virtual_document_id", "integer", array("label" => Translator::getInstance()->trans("Virtual document"), "label_attr" => array("for" => "virtual_document_id_field")));
     // Add standard description fields, excluding title and locale, which a re defined in parent class
     $this->addStandardDescFields(array('title', 'locale'));
 }