]> Raphaƫl G. Git Repositories - treebundle/blob - config/doctrine/Element.orm.yml
bfd9d7ba6844132023326557cec72b43a7b82221
[treebundle] / config / doctrine / Element.orm.yml
1 Rapsys\TreeBundle\Entity\Element:
2 type: entity
3 #repositoryClass: Rapsys\TreeBundle\Repository\ElementRepository
4 table: elements
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: elements
25 user:
26 targetEntity: Rapsys\TreeBundle\Entity\User
27 inversedBy: elements
28 uniqueConstraints:
29 album_user_path:
30 columns: [ album_id, user_id, path ]
31 lifecycleCallbacks:
32 preUpdate: ['preUpdate']