Closed BenArfanour closed 7 years ago
I had the same issue as well using this bundle, but i couldnt find any solution for this
This issue is very vague. Without seeing your codebase, I cannot answer/solve this issue. The only thing I can recommend is try running your query outside of the event loader, using dates that would be passed in via the calendar JS.
Numerous people are successfully using this bundle, so I don't think there are any errors in the code.
As mentioned in another issue:
This bundle does not care how you load events. All it does is dispatch the event "calendar.load_events", and expects your code to add events to the CalendarEvent class. It has no knowledge of how you are querying your database, or where the events are coming from. You are copying an example EventListener from the docs. That example does not need to match how your code works at all.
EventEntity is not meant to be used as a Doctrine Entity. You don't need to extend it. You just need to populate new instantiated EventEntity objects and pass them to the CalendarEvent.
I've installed this bundle , i followed all steps , rather the calendar displayed but i can't load events to see them on the calendar
`<?php /**
namespace metoBundle\EventListener;
use ADesigns\CalendarBundle\Entity\EventEntity; use Doctrine\ORM\EntityManager;
class CalendarEventListener { private $entityManager;
}
Service.xml
<?xml version="1.0" ?>