ancarebeca / FullCalendarBundle

Symfony3 integration with the library FullCalendar.js
36 stars 38 forks source link

Cant create Events Table #37

Closed ibrasdev closed 6 years ago

ibrasdev commented 6 years ago

Hello,

Ive followed the entire guide to install the calendar. This is myclass EventCustom.php in /RDVBundle/Entity/EventCustom.php `<?php

namespace RDVBundle\Entity;

use AncaRebeca\FullCalendarBundle\Model\FullCalendarEvent; use Doctrine\ORM\Mapping as ORM;

/**

class CalendarEvent extends FullCalendarEvent { /**

Thanks a lot

ancarebeca commented 6 years ago

I think you are missing the Doctrine mapping in the others fields. If you want to persist the rest of the fields you have to do something like this:

/**
* @var int
*
* @Orm\Column(name="id", type="integer")
* @Orm\Id
* @Orm\GeneratedValue(strategy="AUTO")
*/
protected $id;

/**
 * @var string
* @Orm\Column(name="title", type="string")
 */
protected $title;

//the same for the others fields ...