getCustomer()) { $currency = $customer->getCurrency(); } } $this->addFields($builder, $currency); } /** * {@inheritdoc} */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ 'data_class' => CustomerRate::class, 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_token_id' => 'admin_customer_rate_edit', 'attr' => [ 'data-form-event' => 'kimai.customerUpdate' ], ]); } }