[symfony-users] (Doctrine) as keyword doesn't work as expected. Can't figure out a query :(

2010-03-10 Thread miguelSantirso
Hi, I have a starts_at field that keeps the date in which certain event starts or has started (in UNIX seconds). Also, I have a minutes_long field. I need to filter all the objects that are already finished and I tried adding the following to my original query: $q-addSelect('c.starts_at +

[symfony-users] Re: (Doctrine) as keyword doesn't work as expected. Can't figure out a query :(

2010-03-10 Thread miguelSantirso
, could that be the problem? On Mar 10, 7:21 pm, Jim Krehl jim...@harmonixmusic.com wrote: On 03/10/2010 01:10 PM, miguelSantirso wrote: Hi, I have a starts_at field that keeps the date in which certain event starts or has started (in UNIX seconds). Also, I have a minutes_long field. I need

[symfony-users] Re: Get the values of other fields from a validator

2009-09-16 Thread miguelSantirso
functions Good luck. On Sep 15, 6:35 am, miguelSantirso tirso...@gmail.com wrote: From a normal validator, is it possible to get the values of the other fields submitted with the form? I need this because I want to set the name of a file according to the name of the object uploaded

[symfony-users] Re: Get the values of other fields from a validator

2009-09-16 Thread miguelSantirso
Thank you Casey, your solution worked! In case someone has the same problem, I posted how I did it here: http://sourcecookbook.com/es/recipes/56/change-the-filename-of-an-upload On Sep 16, 11:16 am, miguelSantirso tirso...@gmail.com wrote: Ok, I will try that; I think it can work. Thank you

[symfony-users] Get the values of other fields from a validator

2009-09-15 Thread miguelSantirso
From a normal validator, is it possible to get the values of the other fields submitted with the form? I need this because I want to set the name of a file according to the name of the object uploaded (the name is a different field of the same form). At first, I thought it would be easy with the