-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
各領域的數據庫表?
不好意思啊:))錯過鍵入<3日Thnx – Meabed 2011-05-09 16:13:44