Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » extending event_calender

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2 3
Go to End
Author Topic: 3299 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: extending event_calender Link to this post

    The problem is that you've named the relationship "Calendar" in your custom datetime class, which is something I didn't expect, so I just have to search for every reference to CalendarID and make sure it's explicitly named CalendarDateTime.CalendarID.

    I can't see any reason why this would still be happening if you're on the latest SVN. Ensure that line 201 of CalendarDateTime.php reads:

             "is_announcement = 1 AND CalendarDateTime.CalendarID = {$calendarID}"      

    and not

    CalendarID = {$calendarID}

  • Andre
    Avatar
    Community Member
    126 Posts

    Re: extending event_calender Link to this post

    lin 201 is korrect.

    is it helpful, when I rename the relationship?

  • Andre
    Avatar
    Community Member
    126 Posts

    Re: extending event_calender Link to this post

    i also have another question according to the event_calendar modul. The translation does not work for me, but I have no Idea, what I have done wrong. I still postet it here, but got no answer until now.
    http://www.silverstripe.org/general-questions/show/267543#post267543

  • UncleCheese
    Avatar
    4085 Posts

    Re: extending event_calender Link to this post

    You shouldn't have to. Do you have a stack trace that can show what function is running the query that is failing? I honestly can't find any references to "CalendarID" in the source code that aren't prefaced by "CalendarDateTime." I really think you're running an older version of the code.

    3299 Views
Page: 1 2 3
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.