0
我想從我的文件實體加載對象,但symfony不斷返回 「類前端\ FolderBundle \實體\角色不存在」,但我可以使用它從無我有以下實體的任何問題或警告Symfony2返回類不存在實體負載
的子文件夾中的實體:
Frontend\FolderBundle\Entity\File:
type: entity
table: file
fields:
id:
type: integer
id: true
generator:
strategy: AUTO
filename:
type: text
user:
type: integer
manyToOne:
folder:
targetEntity: Frontend\FolderBundle\Entity\Subfolder
inversedBy: files
joinColumn:
name: subfolder_id
referencedColumnName: id
lifecycleCallbacks: { }
Frontend\FolderBundle\Entity\Subfolder:
type: entity
table: subfolder
fields:
id:
type: integer
id: true
generator:
strategy: AUTO
name:
type: string
length: 255
manyToOne:
folder:
targetEntity: Folder
inversedBy: subfolder
joinColumn:
name: folder_id
referencedColumnName: id
oneToMany:
files:
targetEntity: File
mappedBy: folder
manyToMany:
roles:
targetEntity: Frontend\UserBundle\Entity\Role
inversedBy: subfolders
joinTable:
name: folder_rights
joinColumns:
subfolder_id:
referencedColumnName: id
inverseJoinColumns:
role_id:
referencedColumnName: id
lifecycleCallbacks: { }
獲取人的角色是一個文件夾具有從子文件夾是工作的罰款。
我已經清除了應用程序/緩存和學說緩存,但不這樣做的伎倆..
如果您需要了解更多信息/代碼片段的詢問,我會爲他們提供。
由於提前,