]> Raphaƫl G. Git Repositories - treebundle/blob - config/doctrine/Asset.orm.yml
Add album, user and path asset unique index
[treebundle] / config / doctrine / Asset.orm.yml
1 Rapsys\TreeBundle\Entity\Asset:
2 type: entity
3 #repositoryClass: Rapsys\TreeBundle\Repository\AssetRepository
4 table: assets
5 id:
6 id:
7 type: integer
8 generator:
9 strategy: AUTO
10 options:
11 unsigned: true
12 fields:
13 path:
14 type: string
15 length: 4096
16 nullable: true
17 created:
18 type: datetime
19 updated:
20 type: datetime
21 manyToOne:
22 album:
23 targetEntity: Rapsys\TreeBundle\Entity\Album
24 inversedBy: assets
25 user:
26 targetEntity: Rapsys\TreeBundle\Entity\User
27 inversedBy: assets
28 uniqueConstraints:
29 album_user_path:
30 columns: [ album_id, user_id, path ]
31 lifecycleCallbacks:
32 preUpdate: ['preUpdate']