【发布时间】:2014-04-11 15:46:38
【问题描述】:
创建实体后:
php app/console doctrine:generate:entity
在使用时:
php app/console doctrine:schema:update --force
我遇到过:
没有要处理的元数据类。
实体
namespace ISLab\AdminBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="menu_items")
*/
class MenuItem
{
/**
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(name="parent", type="integer")
*/
private $parent;
// ...
}
【问题讨论】:
-
你能发布错误吗?
-
请提供出现此错误的代码。
标签: php symfony orm doctrine-orm