]> Raphaƫl G. Git Repositories - treebundle/blob - config/doctrine/Album.orm.yml
5f29f723adf005118feacdc3a2d4cf76c9910f5d
[treebundle] / config / doctrine / Album.orm.yml
1 Rapsys\TreeBundle\Entity\Album:
2 type: entity
3 #repositoryClass: Rapsys\TreeBundle\Repository\AlbumRepository
4 table: albums
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 title:
18 type: string
19 length: 64
20 nullable: true
21 slug:
22 type: string
23 length: 64
24 unique: true
25 nullable: true
26 created:
27 type: datetime
28 updated:
29 type: datetime
30 oneToMany:
31 resources:
32 targetEntity: Rapsys\TreeBundle\Entity\Resource
33 mappedBy: album
34 lifecycleCallbacks:
35 preUpdate: ['preUpdate']