[symfony-users] Re: Avoid blank embed form to be saved

2010-07-30 Thread J_Wesker
there are some values and if not, end the method. If yes, > call parent::save() > > On 30 čnc, 01:51, J_Wesker wrote: > > > After making some changes on my code and debugging using die's and > > var_dump() all day, > > I haven't found the cause of

[symfony-users] Re: Avoid blank embed form to be saved

2010-07-29 Thread J_Wesker
After making some changes on my code and debugging using die's and var_dump() all day, I haven't found the cause of all this. But I have make sure of some facts: 1. If I embed directly the comment form, and set the body field as required, then both objects get saved smoothly, unfortunately the bus

[symfony-users] Re: Avoid blank embed form to be saved

2010-07-29 Thread J_Wesker
Forms of ExpenseForm) > > > *$comment** **=** **$this**->**getValue**(**'**comment**'**);*So the line: > > > *unset**(**$forms**[**'**comment**'**]);* > > > doesn't execute never? > > > On Wed, Jul 28, 2010 at 11:22 PM, J_Wesker wrote: &

[symfony-users] Avoid blank embed form to be saved

2010-07-28 Thread J_Wesker
Hi symfony guys! I've been working on embedded forms for some days now, and I'm really getting desperate This is my story: I have 3 tables... expense, user and comment; they have a 1:N relationship, where the user must be able to type a new comment each time the form is displayed. So, I need to

[symfony-users] Re: Testing credentials

2010-05-13 Thread J_Wesker
If you are using symfony 1.2 or above, and your are trying to make a functional test, you can use the sfTesterUser class like this: $browser-> get('/')-> with('user')->begin()-> isCulture('es')-> isAuthenticated(true)-> hasCredential('admin')-> isAttribute('sfguard_user_id', '

[symfony-users] How to create object if value has not match in database when using sfWidgetFormJQueryAutocompleter?

2010-03-31 Thread J_Wesker
Hi symfony community! I have searched on several posts related to this widget for several days, but until now I haven't found a lead about how to accomplish what I need in a form. The situation is like this: The form is using several autocomplete fields, and everything is working great! But it c

[symfony-users] sfWidgetFormPropelJQueryAutocompleter stops working after submitting form with errors

2010-01-13 Thread J_Wesker
Hi everyone! I'm currently using: sfWidgetFormPropelJQueryAutocompleter for the autocompletition feature. Symfony 1.2 Mozilla Firefox 3.5.5 Firebug 1.4.5 When the new or edit actions are executed, the autocomplete enabled field works like it should, but if a validator catches an error on any field

[symfony-users] Re: Remove the layout from the signining page

2009-11-23 Thread J_Wesker
I recall a method called sfAction::setLayout(), you could call this from the signin action: $this->setLayout(false); On Nov 20, 2:18 pm, tirengarfio wrote: > Hi, > > I have started to create the layout for my app, but it also appears in > my signining page... > > I dont want that, so what can i

[symfony-users] How to use sfTesterUser::isAttribute()?

2009-09-25 Thread J_Wesker
I have been trying to do some functional tests on my user after login in. I read here (http://www.symfony-project.org/cookbook/1_2/en/test- application#chapter_98d28ad443a8f32769300bb40973ec7d_sub_user_tester) that the sfTesterUser::isAttribute() can test the value of an attribute, and in the exam

[symfony-users] Secure objects by creator user.

2009-08-18 Thread J_Wesker
Hi Symfony Users! I'm working on a project that involves a secured frontend, where each user can register, edit, list and delete objects, but I need to make a validation in order to prevent any user sees, edit or delete objects created by other users. I tried to implement this on my action.class

[symfony-users] Re: Propel Unit Testing - Reset database before running sfPropelData()?

2009-08-14 Thread J_Wesker
Hi Stephen, I had the same problem you have a few days ago. And indeed every time you run the unit test (in fact any test), you will wipe the database, but if you use the default auto-increment attribute for primary keys, they will not stay static. Ok, so how to 'fix' this? What my boss and me

[symfony-users] How to implement with_show option on an admin generator?

2009-08-11 Thread J_Wesker
Hi! I'm trying to implement the with_show feature on an admin module, but it appears that it just doesn't work 'out of the box' yet. I noticed that when you set the with_show parameter to true, and you render the module on the web browser, on the cache/backend/[env]/ modules/auto[module]/templates