title: Calendar Symfony3 not show event
body: <p>I use <a href="https://github.com/adesigns/calendar-bundle/blob/master/README.md" rel="nofollow noreferrer">https://github.com/adesigns/calendar-bundle/blob/master/README.md</a></p>
  
  <p>I added service.xml to AppBundle/Resources/service.xml</p>
  
  <p>
  </p>
  
  <pre><code>&lt;services&gt;
      &lt;service id="appbundle.calendar_listener" class="AppBundle\CallendarEventListener"&gt;
          &lt;argument type="service" id="doctrine.orm.entity_manager" /&gt;
          &lt;tag name="kernel.event_listener" event="calendar.load_events" method="loadEvents" /&gt;
      &lt;/service&gt;
  
  &lt;/services&gt;
  </code></pre>
  
  <p></p>
  
  <p>and then create a new Entity    </p>
  
  <pre><code> use Doctrine\ORM\Mapping as ORM;
   use ADesigns\CalendarBundle\Entity\EventEntity as BaseEntity;
   /**
  * Event
  *
  * @ORM\Table(name="event")
  * @ORM\Entity(repositoryClass="AppBundle\Repository\EventRepository")
   */
   class Event extends BaseEntity
   {
  /**
   * @var int
   *
   * @ORM\Column(name="id", type="integer")
   * @ORM\Id
   * @ORM\GeneratedValue(strategy="AUTO")
   */
  protected $id;
  
  
  /**
   * Get id
   *
   * @return int
   */
  public function getId()
  {
      return $this-&gt;id;
  }
  </code></pre>
  
  <p>}</p>
  
  <pre><code> class CallendarEventListener
  {
  
  private $entityManager;
  
  public function __construct(EntityManager $entityManager)
  {
      $this-&gt;entityManager = $entityManager;
  }
  
  /**
   * @param CalendarEvent $calendarEvent
  
   */
  public function loadEvents(CalendarEvent $calendarEvent)
  {
      $startDate = $calendarEvent-&gt;getStartDatetime();
      $endDate = $calendarEvent-&gt;getEndDatetime();
  
      // The original request so you can get filters from the calendar
      // Use the filter in your query for example
  
      $request = $calendarEvent-&gt;getRequest();
      $filter = $request-&gt;get('filter');
  
  
      // load events using your custom logic here,
      // for instance, retrieving events from a repository
  
      $companyEvents = $this-&gt;entityManager-&gt;getRepository('AppBundle:Event')
          -&gt;createQueryBuilder('company_events')
          -&gt;where('company_events.event_datetime BETWEEN :startDateTime and :endDateTime')
          -&gt;setParameter('startDateTime', $startDate-&gt;format('Y-m-d H:i:s'))
          -&gt;setParameter('endDateTime', $endDate-&gt;format('Y-m-d H:i:s'))
          -&gt;getQuery()-&gt;getResult();
  
      // $companyEvents and $companyEvent in this example
      // represent entities from your database, NOT instances of EventEntity
      // within this bundle.
      //
      // Create EventEntity instances and populate it's properties with data
      // from your own entities/database values.
  
      foreach ($companyEvents as $companyEvent) {
  
          // create an event with a start/end time, or an all day event
          if ($companyEvent-&gt;getAllDayEvent() === false) {
              $eventEntity = new EventEntity($companyEvent-&gt;getTitle(), $companyEvent-&gt;getStartDatetime(), $companyEvent-&gt;getEndDatetime());
          } else {
              $eventEntity = new EventEntity($companyEvent-&gt;getTitle(), $companyEvent-&gt;getStartDatetime(), null, true);
          }
  
  
          //optional calendar event settings
          $eventEntity-&gt;setAllDay(true); // default is false, set to true if this is an all day event
          $eventEntity-&gt;setBgColor('#FF0000'); //set the background color of the event's label
          $eventEntity-&gt;setFgColor('#FFFFFF'); //set the foreground color of the event's label
          $eventEntity-&gt;setUrl('http://www.google.com'); // url to send user to when event label is clicked
          $eventEntity-&gt;setCssClass('my-custom-class'); // a custom class you may want to apply to event labels
  
          //finally, add the event to the CalendarEvent for displaying on the calendar
          $calendarEvent-&gt;addEvent($eventEntity);
  
      }
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I enter my route with calendar and, nothing event not loaded.. what's is wrong ? </p>