Closed ghost closed 12 years ago
Problem is here:
https://github.com/ZF-Commons/ZfcUser/blob/master/src/ZfcUser/Service/User.php#L66
Before $form->bind($user) : echo get_class($form->getInputFilter()); => ZfcUser\Form\RegisterFilter (OK)
After $form->bind($user) : echo get_class($form->getInputFilter()); => ZfcUser\Service\User (KO)
$form->isValid() => Exception\DomainException
@Bakura: try to add false to ClassMethods @booradleys: same issue with ClassMethods(false) : echo get_class($form->getInputFilter()); => ZfcUser\Service\User (KO) @thomas_r: uhh, what does classMethods(false) do now? @jurians: Bakura: I guess it is a bug @Bakura: ClassMethods(false) bring the expected behaviour @Bakura: but this is since beta 4 guys !! @jurians: Bakura: this is the change: https://github.com/zendframework/zf2/commit/b215f726dbc6d81793f9941b5e26c432660ad7e7 @Bakura: Yes, 2 months ago @booradleys: it didn't work for me since very long time @booradleys: very very long time @Bakura: But I never use ZfcUser so I can't really help you :/ @jurians: But I guess it is logical to have underscore separated keys when you extract by default and I guess that was the intended change @Bakura: Mmhh I suppose he changed that to use it with options, that are underscore separated @Bakura: but the truth is that this hydrator is used 99% of the time with forms @Bakura: so the main use case is with forms. @thomas_r: Akrabat: i remember now why the 'count' method was put into the abstractdbmapper - because getting a row count is actually a stupidly complicated affair. i think like the transaction stuff, it's handy to have @Bakura: jurians, did you already override messages in validators ? @booradleys: Bakura: So i don't understand how guys can use ZfcUser ??!! @jurians: Bakura: yes. It only does not work for the email validator @Bakura: I don't know, you should ask to EvanDotPro
This appears when i want to configure a custom entity. So maybe this issue is relative to zfcuserdoctrineorm but a correct exception should have been raised.
See https://github.com/ZF-Commons/ZfcUserDoctrineORM/issues/27
Zend\Form\Form::isValid is unable to validate as there is no data currently set ????????
Stack trace: