Closed arendjantetteroo closed 10 years ago
The README is actually a bit confusing/misleading. The $companyEvent
and $companyEvents
variables are meant to represent a separate entity in your project -- for instance, a separate table in your database comprised of company events --- not the EventEntity in this bundle.
The EventEntity really has no use for it's getters, as everything it needs to pass via JSON back to the FullCalendar JS is handled in the toArray()
method.
I will update the README to make the 2 sets of variables more distinguishable.
Thanks, Mike
Made a few small changes in the latest commit...
The getTitle method called in the event listener is missing in your entity, and the getAllDayEvent is called getAllDay in the event entity.
So copying and trying to run the entity listener from the readme won't work without editing the listener or the event entity.