/** * @role login */ public function saveBillingAddress() { try { $address = BillingAddress::getUserAddress($this->request->get('id'), $this->user); } catch (ARNotFoundException $e) { return new ActionRedirectResponse('user', 'index'); } return $this->doSaveAddress($address, new ActionRedirectResponse('user', 'editBillingAddress', array('id' => $this->request->get('id'), 'query' => array('return' => $this->request->get('return'))))); }