我有 ORM:
Something\SomeBundle\Entity\MyTable:
type: entity
table: my_table_name
id:
id:
type: bigint
id: true
generator:
strategy: AUTO
fields:
name:
type: string
length: '64'
nullable: true
slug:
type: string
length: '255'
nullable: true
gedmo:
slug:
separator: -
style: default
updatable: false
fields:
- master
- name
manyToOne:
master:
targetEntity: Master
joinColumn:
name: master_id
referencedColumnName: id
但这在 prod 环境中不起作用(错误:无法找到 slug [master] 作为实体中的映射属性 - Something\SomeBundle\Entity\MyTable)。为什么?如何解决?