[symfony-users] 2 Actions, one form + validation

2007-06-03 Thread Greg Freeman
Say I have two actions Add Edit They use the same form which posts to an update action. The update action determines if it should add or edit a row by checking if an id parameter exists. My question is in a handleErrorUpdate method how could I determine if I should be forwarding to the add actio

[symfony-users] Re: 2 Actions, one form + validation

2007-06-03 Thread Frank Stelzer
Hi Greg, i would link the "add" form to a save action and the "edit" form to a update action (same form, but with different action targets). The save and update actions forward themselves to an internal doSave action. The advantage of handling with two "update" actions is, that you can def

[symfony-users] Re: 2 Actions, one form + validation

2007-06-03 Thread Greg Freeman
Thanks a lot, Looking at the generated module gave me plenty of ideas/ tips. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com

[symfony-users] doctrine-load-data: general error

2007-06-03 Thread Frédéric PICA
Greets, I'm having some issues with doctrine-load-data, here is the output : [EMAIL PROTECTED] ~/sites/test $ symfony doctrine-load-data backend >> doctrine load data from "/home/fred/sites/test/data/fixtures" >> Filling class "Armee" Class Armee: Users, Grades [PDOException] SQLSTATE[H

[symfony-users] Symfony cache + PHP fatal error

2007-06-03 Thread Kiril Angov
Hello list, my time came to ask for help :) I just enabled caching for the first time in my application and when testing the caching in a different controller (frontend_staging.php), everything is as expected. I turn on caching on the production controller and php dies with: [Sun Jun 03 06:2

[symfony-users] Re: Objects Helpers + raw data

2007-06-03 Thread Greg Freeman
Is it possible to use the raw data with an object textarea tag? At the moment I'm using a normal textarea tag with the $object->getRawValue()- >getBody(); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony use

[symfony-users] Re: test-unit is "dubious" and returns status 255

2007-06-03 Thread Steve
Hi David, > IF the test works when you run it individually, but not when run as > part of a suite, I have a good idea of what is going on because I > encountered it myself recently. The problem is that when you run an > individual test, the test code is 'included' into a working symfony > contex