开发者

Doctrine 2 orm:schema-tool:create [closed]

开发者 https://www.devze.com 2023-03-04 03:47 出处:网络
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not generally applic
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide aud开发者_Python百科ience of the internet. For help making this question more broadly applicable, visit the help center. Closed 9 years ago.

I have model as follow

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

When I run

orm:schema-tool:create

it generate the table on the database with all fields except Last_name ?


Seems like you have a typo: @Coulmn(type="string",nullable=false) should be @Column(type="string",nullable=false)

0

精彩评论

暂无评论...
验证码 换一张
取 消