1 | <?php |
||
7 | trait ManyTo |
||
8 | { |
||
9 | /** |
||
10 | * @var JoinColumn[] |
||
11 | */ |
||
12 | protected $joinColumns = []; |
||
13 | |||
14 | /** |
||
15 | * Build the association |
||
16 | */ |
||
17 | 81 | public function build() |
|
32 | |||
33 | /** |
||
34 | * @param string $relation |
||
35 | * @param string|null $joinColumn |
||
36 | * @param string|null $referenceColumn |
||
37 | * @param bool|false $nullable |
||
38 | * @param bool|false $unique |
||
39 | * @param string|null $onDelete |
||
40 | * @param string|null $columnDefinition |
||
41 | * |
||
42 | * @return $this |
||
43 | */ |
||
44 | 127 | public function addJoinColumn( |
|
68 | |||
69 | /** |
||
70 | * @param JoinColumn $column |
||
71 | */ |
||
72 | 127 | protected function pushJoinColumn(JoinColumn $column) |
|
76 | |||
77 | /** |
||
78 | * @return JoinColumn[] |
||
79 | */ |
||
80 | 83 | public function getJoinColumns() |
|
84 | |||
85 | /** |
||
86 | * @return \Doctrine\ORM\Mapping\Builder\AssociationBuilder |
||
87 | */ |
||
88 | abstract public function getAssociation(); |
||
89 | |||
90 | /** |
||
91 | * @return \Doctrine\ORM\Mapping\NamingStrategy |
||
92 | */ |
||
93 | abstract public function getNamingStrategy(); |
||
94 | } |
||
95 |