adesigns / calendar-bundle

This bundle allows you to integrate the jQuery FullCalendar plugin into your Symfony2 application.
MIT License
97 stars 60 forks source link

EventListener doesn't correspond to entity #12

Closed arendjantetteroo closed 10 years ago

arendjantetteroo commented 10 years ago

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.

mikeyudin commented 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

mikeyudin commented 10 years ago

Made a few small changes in the latest commit...