Hi all,

I've a problem with associated models and form->dateTime.
I have the following models: User belongsTo Group hasOne Detail.

Now I want to edit User, Group and Profile in one form. User and Group
work without any problem, but there is a problem with the field
foundation_date of the Detail model. The foundation_date can be NULL.
I use the following code to generate the field:

echo $form->dateTime(
    'User.Group.foundation_date',
    'YMD',
    'NONE'
);

If the field is not empty, everything is ok and I can enter a new date
and even empty the field. But when the field is empty I get the
following errors:

Undefined variable: year
Undefined variable: month
Undefined variable: day

Does anybody know a solution to my problem?

Thanks,
Markus
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to