使用第三方框架时的驱动程序错误(学说)
我得到以下exception,
[Doctrine\DBAL\Exception\DriverException] An exception occurred while executing 'ALTER TABLE book ADD CONSTRAINT FK_C BE5A33112469DE2 FOREIGN KEY (category_id) REFERENCES category (id)': SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint [Doctrine\DBAL\Driver\PDOException] SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint [PDOException] SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint
在运行php bin/console doctrine:schema:update --force
。 有人要我重新安装Ubuntu。 我该怎么办?