Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » Event Calendar - get_by_id

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1110 Views
  • toddm
    Community Member
    15 Posts

    Event Calendar - get_by_id Link to this post


    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

    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


  • UncleCheese
    4085 Posts

    Re: Event Calendar - get_by_id Link to this post

    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?

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.