@@ 86-94 (lines=9) @@ | ||
83 | * |
|
84 | * @return ForeignKey Self instance. |
|
85 | */ |
|
86 | public function setColumns($columns) |
|
87 | { |
|
88 | if (!is_array($columns)) { |
|
89 | $columns = array($columns); |
|
90 | } |
|
91 | $this->columns = $columns; |
|
92 | ||
93 | return $this; |
|
94 | } |
|
95 | ||
96 | /** |
|
97 | * Gets column names. |
|
@@ 113-121 (lines=9) @@ | ||
110 | * |
|
111 | * @return ForeignKey Self instance. |
|
112 | */ |
|
113 | public function setReferencedColumns($columns) |
|
114 | { |
|
115 | if (!is_array($columns)) { |
|
116 | $columns = array($columns); |
|
117 | } |
|
118 | $this->referencedColumns = $columns; |
|
119 | ||
120 | return $this; |
|
121 | } |
|
122 | ||
123 | /** |
|
124 | * Gets reference column names. |