You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Note that BOTH have to be set, else it throws exceptions once in _call() and once in enum()$this->addBehavior('CakeDC/Enum.Enum', ['lists' => [
'xml_kundendaten_adresse_anrede' => [
'strategy' => 'const',
'prefix' => 'SALUTATION',
'field' => 'Xml_Kundendaten_Adresse_Anrede',
],
'Xml_Kundendaten_Adresse_Anrede' => [
'strategy' => 'const',
'prefix' => 'SALUTATION',
'field' => 'Xml_Kundendaten_Adresse_Anrede',
],
]]);
Question
Is there a reason the list keys are being inflected around inside the behavior?
The text was updated successfully, but these errors were encountered:
Hi @inoas, I was checking your code, so what you need to do is follow the cake standard, so when you set the variable from the method, you need to use camel case, you should to have something like that $this->set('xmlKundendatenAdresseAnredes', $this->YOUR_TABLE->enum('xml_kundendaten_adresse_anrede')); in your controller. You don't need to have this param 'field' => 'Xml_Kundendaten_Adresse_Anrede', do you need some help more about this question?
No I get it, however It shipped now with this code am works (tm) ;)
Next time I use CakeDC/Enum AND do not follow conventions (sorry about that, usually I do) I will try this and if it does not work will try to come up with a PR.
Problem
Error
Error CakeDC\Enum\Model\Behavior\Exception\MissingEnumConfigurationException
Workaround
Question
Is there a reason the list keys are being inflected around inside the behavior?
The text was updated successfully, but these errors were encountered: