Adesigns Bundle Fullcalendar 扩展 class
Adesigns Bundle Fullcalendar extends class
我如何进行扩展,因为我已经这样做了:
namespace Calendar\CalendarBundle\Entity;
use ADesigns\CalendarBundle\Entity\EventEntity;
use Doctrine\ORM\Mapping as ORM;
/**
* Seance
*
* @ORM\Table(name="seance")
* @ORM\Entity(repositoryClass="Calendar\CalendarBundle\Repository\SeanceRepository")
*/
class Seance extends EventEntity {
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @var string
*
* @ORM\Column(name="seance_type", type="string", length=8)
*/
private $seanceType;
}
当我这样做时
php app/console doctrine:schema:update --dump-sql
我只有 class 降神会
的属性
CREATE TABLE seance (id INT AUTO_INCREMENT NOT NULL, seance_type VARCHAR(8) NOT NULL, PRIMARY KEY(id)) 默认字符集 utf8 整理 utf8_unicode_ci 引擎 = InnoDB;
问题出在bundle ADesigns 中的Entity 属性
之前没有@ORM\Column
我如何进行扩展,因为我已经这样做了:
namespace Calendar\CalendarBundle\Entity;
use ADesigns\CalendarBundle\Entity\EventEntity;
use Doctrine\ORM\Mapping as ORM;
/**
* Seance
*
* @ORM\Table(name="seance")
* @ORM\Entity(repositoryClass="Calendar\CalendarBundle\Repository\SeanceRepository")
*/
class Seance extends EventEntity {
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @var string
*
* @ORM\Column(name="seance_type", type="string", length=8)
*/
private $seanceType;
}
当我这样做时
php app/console doctrine:schema:update --dump-sql
我只有 class 降神会
的属性CREATE TABLE seance (id INT AUTO_INCREMENT NOT NULL, seance_type VARCHAR(8) NOT NULL, PRIMARY KEY(id)) 默认字符集 utf8 整理 utf8_unicode_ci 引擎 = InnoDB;
问题出在bundle ADesigns 中的Entity 属性
之前没有@ORM\Column