http://www.symfony-project.com/snippets/snippet/159
how's that?
Kupo
[EMAIL PROTECTED] wrote:
> that one doesn't work.
> i did it like that:
> $a->setTimeIn(date("Y-m-d H:i:s");
>
> but this is a little bit lame? isn't is?
>
> is there no NOW() function... because i try always to get the
> Timefunctions from the DB and not from PHP in cases where the PHP
> Server isn't the MySQL Server... so sometimes you have some relevant
> time shits.
>
> thanks
>
>
> On 27 Jun., 22:35, "Jonathan H. Wage" <[EMAIL PROTECTED]> wrote:
>
>> $a->setTimeIn(time());
>>
>> - Jon
>>
>> On Jun 27, 2007, at 3:33 PM, [EMAIL PROTECTED] wrote:
>>
>>
>>
>>
>>> hi all
>>>
>>> is there a way to place functions in setters?
>>> like that: (don't work)
>>>
>>> $a = new Worktime();
>>> $a->setTimeIn("now()");
>>> $a->save();
>>>
>>> how can i use functions? DQL?
>>>
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---