17452 Posts in 4473 Topics by 1971 members
|Go to End|
5 September 2008 at 8:19am
An event has_one DateTime. How can I update the DateTime DataObject associated with the event with just textfields?
static $has_one = array (
'DateTime' => 'DateTime'
new TextField('DateTime.StartDate', 'Start Date');
new TextField('DateTime.StartTime', 'Start Time');
... doesn't work. Any way to to this?
5 September 2008 at 3:57pm
Do you need to use has_one? cant you just have 2 fields on the database "StartDate" and "StartTime"
6 September 2008 at 1:29am
Yeah, that's the thing. The dataobject DateTime is shared across two modules. The other module can add to it in with a has_many relationship, but this module has a has_one. On the frontend I just want to be able to get all of them regardless of where they came from.
|Go to Top|