检查学说关系是否正确
Check if doctrine relations are correct
是否可以检查模型之间的关系是否正确?
我正在寻找 cli 命令或类似显示错误关系的 Symfony2 探查器之类的东西。
有一个内置命令可验证映射文件是否正确并与数据库同步:
./bin/doctrine help orm:validate-schema
'Validate that the mapping files are correct and in sync with the
database.'
在 symfony2 doctrine bundle 中存在两个命令:
doctrine:schema:validate
The doctrine:schema:validate checks the current mappings for valid
forward and reverse mappings.
和
doctrine:mapping:info
The doctrine:mapping:info shows basic information about which
entities exist and possibly if their mapping information contains
errors or not.
“每次使用自定义列定义触发架构更新”:
“这是一个我们无法修复的已知限制。”
https://github.com/doctrine/dbal/issues/2666#issuecomment-283772609
是否可以检查模型之间的关系是否正确?
我正在寻找 cli 命令或类似显示错误关系的 Symfony2 探查器之类的东西。
有一个内置命令可验证映射文件是否正确并与数据库同步:
./bin/doctrine help orm:validate-schema
'Validate that the mapping files are correct and in sync with the database.'
在 symfony2 doctrine bundle 中存在两个命令:
doctrine:schema:validate
The doctrine:schema:validate checks the current mappings for valid forward and reverse mappings.
和
doctrine:mapping:info
The doctrine:mapping:info shows basic information about which entities exist and possibly if their mapping information contains errors or not.
“每次使用自定义列定义触发架构更新”: “这是一个我们无法修复的已知限制。” https://github.com/doctrine/dbal/issues/2666#issuecomment-283772609