Doctrine 条令2 orm:模式工具:创建

Doctrine 条令2 orm:模式工具:创建,doctrine,Doctrine,我有如下的模型 /** * @Id * @Column(type="integer",nullable=false) * @generatedValue(strategy="AUTO") */ private $id; /** * @Column(type="string",nullable=false,unique=true) */ private $email; /** * @Column(type="string",length=64,nullable=false) */

我有如下的模型

/**
 * @Id
 * @Column(type="integer",nullable=false)
 * @generatedValue(strategy="AUTO")
 */
private $id;
/**
 * @Column(type="string",nullable=false,unique=true)
 */
private $email;
/**
 * @Column(type="string",length=64,nullable=false)
 */
private $password;
/**
 * @Column(type="string",nullable=false)
 */
private $first_name;
/**
 * @Coulmn(type="string",nullable=false)
 */
private $last_name;
当我跑的时候

orm:schema-tool:create

它会在数据库上生成包含除姓氏以外的所有字段的表?

似乎您有一个输入错误:@coulmantype=string,nullable=false应该是@Columntype=string,nullable=false

啊,对不起:错过了类型