0
私は現在Silexを学んでおり、Doctrineで外部キーを管理する方法を理解しています。 Doctrineマッピングファイルのエラー外部キーSilex
マッピングファイルにエラーがあります。無効なマッピングファイルです。ここで
そして、ここで私は答えを見つけた後
BLOG\Models\Post:
type: entity
table: posts
id:
id:
type: integer
generator:
strategy: auto
fields:
title:
type: string
length: 255
column: title
nullable: false
date:
type: datetime
column: date
nullable: false
content:
type: text
length: 65535
column: content
nullable: false
manyToOne:
user:
targetEntity: User
mappedBy: Use_id