[FLOW3-general] Get errors from forms

Dawid Pacholczyk dpacholczyk at gmail.com
Tue Aug 9 23:32:16 CEST 2011


Ok but I still have a problem with catching errors. I`ve setup fieeld 
like this

@Column(length="100", unique="true")

When I add reecord with non unique value in this field I get Exception 
stack trace. How can I catch it ? Or mayb should I ask where. I`ve was 
tring to use try/catch in createAction but it does not work. How can I 
catch it ?

Best regards,
Dawid Pacholczyk

W dniu 2011-08-09 23:01, Dawid Pacholczyk pisze:
> Ofc I missed the chapter about validation and loops with error object :)
>
> Cool !
>
> Best regards,
> Dawid Pacholczyk
>
> W dniu 2011-08-09 22:54, Dawid Pacholczyk pisze:
>> Hi List,
>> I`m wondering how can I receive the errors from form while creating new
>> record in db ?
>>
>> For example in my model I have adnotation like this one:
>>
>> @validate Text, StringLength(minimum = 3, maximum = 80)
>>
>> When I type something shorter I get:
>>
>> An error occurred while trying to call
>> Test\Core\Controller\UserController->createAction()
>>
>> How can I catch the error ? I was looking something like try {} catch
>> but it didn`t help :(
>>
>> Best regards,
>> Dawid Pacholczyk
>



More information about the FLOW3-general mailing list