2011-05-09 110 views
-1

model如下學說2 ORM:架構工具:創建

/** 
* @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 

它產生與除Last_name各領域的數據庫表?

回答

2

好像你有一個錯字:@Coulmn(type="string",nullable=false)應該@Column(type="string",nullable=false)

+0

不好意思啊:))錯過鍵入<3日Thnx – Meabed 2011-05-09 16:13:44