10375 Posts in 2190 Topics by 1707 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 963 Views |
-
Event Calendar - get_by_id

5 September 2009 at 3:39am
Hi,
I extended CalendarDateTime and everything was working fine, but when I'm not getting the associated CourseOrEvent when using get_by_id.
CourseOrEvent is an extension of CalendarEvent.
Both of these extensions are based on the tutorial: http://doc.silverstripe.com/doku.php?id=recipes:extending_the_event_calendar&s=recipes%20calendar
Example:
DataObject::get_by_id('CourseOrEventDateTime', $this->_courseoreventdatetimeID)The CourseOrEventID is being returned as 0 event though it is saved fine in the db.
Any ideas?
I'm running SS 2.3.3 and event_calendar 0.3
Todd
-
Re: Event Calendar - get_by_id

5 September 2009 at 4:18am
Why is there an underscore in front of it?
I don't really have any context on what you're doing. Can you post some code?
| 963 Views | ||
|
Page:
1
|
Go to Top |

