Reputation: 13
I have in my entity a method:
public function getProviderAvailabilities($providerKey)
When i try add a form field by $builder->add('ProviderAvailabilities')
I get the following error
ContextErrorException: Warning: Missing argument 1 for getProviderAvailabilities() called in Symfony/Component/PropertyAccess/PropertyAccessor.php on line 211 and defined in
How can I fix it? PS. Sorry for my English.
Upvotes: 1
Views: 2637
Reputation: 2759
You are using an argument in your getter method. Maybe you can change your method definition like this:
public function getProviderAvailabilities($providerKey = null)
You should provide us with some more code of your getter method.
Upvotes: 2