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