ファイルContainer
に含めた Symfony アプリケーションで呼び出されるエンティティがあります。schema.yml
Container:
columns:
id: { type: integer, primary: true, autoincrement: true }
name: { type: string(127), notnull: true }
Strain:
columns:
id: { type: integer, primary: true, autoincrement: true }
...
container_id: { type: integer }
...
relations:
Container: { foreignAlias: Strains }
symfony doctrine:build --all-classes
次に、タスクを使用してモデル、フォーム、フィルターを再生成しました。
$strain->getContainer()
たとえば、アクションでを使用しようとすると、showSuccess
オブジェクトがまったく返されません。テーブルcontainer_id
内のレコードへの参照があることを再確認しました。container
さらに、Strain
オブジェクトを編集して との関係をリンク解除しようとするとContainer
、フォームは正しく保存されますが、container_id
列には古い値が保持されます。
Container
Symfony や Doctrine で が予約語なのか、そのようなものなのか知っていますか? 何が起こっている可能性がありますか?
ありがとう!