我需要知道如何在Symfony中的entity.orm.yml映射上为manyToOne字段添加默认值。此代码无效:
manyToOne:
usertype:
targetEntity: Usertype
cascade: { }
mappedBy: null
inversedBy: null
joinColumns:
UserType:
referencedColumnName: ID
orphanRemoval: false
options:
default: 1