Rename resource to asset
Add album repository
Rapsys\TreeBundle\Entity\Album:
type: entity
Rapsys\TreeBundle\Entity\Album:
type: entity
- #repositoryClass: Rapsys\TreeBundle\Repository\AlbumRepository
+ repositoryClass: Rapsys\TreeBundle\Repository\AlbumRepository
path:
type: string
length: 4096
path:
type: string
length: 4096
- nullable: true
- title:
- type: string
- length: 64
nullable: true
slug:
type: string
nullable: true
slug:
type: string
updated:
type: datetime
oneToMany:
updated:
type: datetime
oneToMany:
- resources:
- targetEntity: Rapsys\TreeBundle\Entity\Resource
+ assets:
+ targetEntity: Rapsys\TreeBundle\Entity\Asset
mappedBy: album
lifecycleCallbacks:
preUpdate: ['preUpdate']
mappedBy: album
lifecycleCallbacks:
preUpdate: ['preUpdate']