Exemplo n.º 1
0
 public function updateAction()
 {
     if (null !== ($response = $this->checkAuth($this->resourceCode, array(), AccessManager::UPDATE))) {
         return $response;
     }
     $object = $this->getExistingObject();
     if ($object != null) {
         // Hydrate the form abd pass it to the parser
         $changeTaxesForm = $this->hydrateTaxUpdateForm($object);
         // Pass it to the parser
         $this->getParserContext()->addForm($changeTaxesForm);
     }
     return parent::updateAction();
 }