/
Wall.orm.yml
51 lines (51 loc) · 1.4 KB
/
Wall.orm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
SocialDataBundle\Model\Wall:
type: entity
table: social_data_wall
fields:
id:
type: integer
id: true
column: id
generator:
strategy: AUTO
name:
column: '`name`'
nullable: false
type: string
unique: true
dataStorage:
column: data_storage
type: array
nullable: true
assetStorage:
column: asset_storage
type: array
nullable: true
creationDate:
column: creation_date
type: datetime
nullable: false
oneToMany:
feeds:
targetEntity: SocialDataBundle\Model\Feed
orphanRemoval: true
mappedBy: wall
cascade:
- all
manyToMany:
wallTags:
targetEntity: SocialDataBundle\Model\Tag
cascade:
- persist
joinTable:
name: social_data_wall_tags
joinColumns:
wall_id:
referencedColumnName: id
nullable: false
onDelete: CASCADE
inverseJoinColumns:
tag_id:
referencedColumnName: id
nullable: false
onDelete: CASCADE