7921 Posts in 1359 Topics by 933 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » extending event_calender
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | ||
| Author | Topic: | 2878 Views |
-
Re: extending event_calender

26 August 2009 at 1:21am
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}
-
Re: extending event_calender

26 August 2009 at 1:57am
lin 201 is korrect.
is it helpful, when I rename the relationship?
-
Re: extending event_calender

26 August 2009 at 1:58am
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 -
Re: extending event_calender

26 August 2009 at 2:36am
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.
| 2878 Views | ||
| Go to Top |

