The simplest solution is $object->setMyDatetime('NOW');
Mark
On Feb 5, 9:52 am, pihentagy <[EMAIL PROTECTED]> wrote:
> Well, setting $object->setMyDatetime(time()); works, if it is
> called :-/
>
> On Feb 5, 5:34 pm, pihentagy <[EMAIL PROTECTED]> wrote:
>
> > Hi all!
>
> > I'm stuck with a datetime (or timestamp) type field.
> > (Yes, I know about created_at and updated_at, I really need a custom
> > AND NULLABLE datetime field)
>
> > (I designed the database with DBDesigner4 and then transform it)
>
> > I'd like to update my timestamp to the current date. How can I do
> > that? (using Symfony 1.0.11 (->Propel) and WAMP 1.7.4)
>
> > thanks
>
> > Gergo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---