Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Can't ->SaveInto() an object containing an SSDateTime


Go to End


2126 Views

Avatar
mobius

Community Member, 54 Posts

20 September 2009 at 9:31am

I have a form with a PopupDateTimeField, and a dataobject with a SSDatetime, but if I try and run

$form->SaveInto($release)

I get the error [Notice] Undefined property: Release::$DeliveryTime.

This also happens if i change it to just date, but not if i change it to text (but of course then the date functions don't work)

How do I get this to work?