| @@ 177-187 (lines=11) @@ | ||
| 174 | /** |
|
| 175 | * @return AbstractReference[] |
|
| 176 | */ |
|
| 177 | public function addedForeigns() |
|
| 178 | { |
|
| 179 | $difference = []; |
|
| 180 | foreach ($this->current->getForeigns() as $name => $foreign) { |
|
| 181 | if (!$this->initial->knowsForeign($name)) { |
|
| 182 | $difference[] = $foreign; |
|
| 183 | } |
|
| 184 | } |
|
| 185 | ||
| 186 | return $difference; |
|
| 187 | } |
|
| 188 | ||
| 189 | /** |
|
| 190 | * @return AbstractReference[] |
|
| @@ 192-202 (lines=11) @@ | ||
| 189 | /** |
|
| 190 | * @return AbstractReference[] |
|
| 191 | */ |
|
| 192 | public function droppedForeigns() |
|
| 193 | { |
|
| 194 | $difference = []; |
|
| 195 | foreach ($this->initial->getForeigns() as $name => $foreign) { |
|
| 196 | if (!$this->current->knowsForeign($name)) { |
|
| 197 | $difference[] = $foreign; |
|
| 198 | } |
|
| 199 | } |
|
| 200 | ||
| 201 | return $difference; |
|
| 202 | } |
|
| 203 | ||
| 204 | /** |
|
| 205 | * Returns array where each value contain current and initial element state. |
|