Jea*_*ean 12 mysql sql symfony doctrine-orm
我在Symfony2项目中添加了一些数据库表.然后,我使用以下命令:
php app/console doctrine:generate:entities Acme
Run Code Online (Sandbox Code Playgroud)
更新类.然后,我尝试使用以下命令更新MySQL DB:
php app/console doctrine:schema:update --force
Run Code Online (Sandbox Code Playgroud)
但是,我收到以下错误消息
[PDOException]
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the right syntax to use near
'like TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, INDEX IDX_8EA4B675A76ED3' at line 1
Run Code Online (Sandbox Code Playgroud)
如何查看哪个SQL查询错误?自动生成SQL查询的位置是什么?
提前致谢.