Even if I create field 'data_photo' nullable, after insert row - this
row has got null value in field 'data_photo' in database.
Doctrine_Expression('NOW()') doesn't work :(

On 19 Paź, 00:42, Eno <[email protected]> wrote:
> On Sun, 18 Oct 2009, mini_alexander wrote:
> > I make something like that:
>
> > $record = new Photo();
> > $record->data_photo = new Doctrine_Expression('NOW()');
> > $record->save();
>
> > And I have error:
>
> > Validation failed in class Photo
> > 1 field had validation error:
> > * 1 validator failed on data_photo (notnull)
>
> Looks like you have a field that cannot be null.
>
> --
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to