@@ 202-211 (lines=10) @@ | ||
199 | * |
|
200 | * @return array |
|
201 | */ |
|
202 | public function getDeleteDiff() |
|
203 | { |
|
204 | return array_udiff_assoc( |
|
205 | $this->snapshot, |
|
206 | $this->collection->toArray(), |
|
207 | function ($a, $b) { |
|
208 | return $a === $b ? 0 : 1; |
|
209 | } |
|
210 | ); |
|
211 | } |
|
212 | ||
213 | /** |
|
214 | * INTERNAL: |
|
@@ 219-228 (lines=10) @@ | ||
216 | * |
|
217 | * @return array |
|
218 | */ |
|
219 | public function getInsertDiff() |
|
220 | { |
|
221 | return array_udiff_assoc( |
|
222 | $this->collection->toArray(), |
|
223 | $this->snapshot, |
|
224 | function ($a, $b) { |
|
225 | return $a === $b ? 0 : 1; |
|
226 | } |
|
227 | ); |
|
228 | } |
|
229 | ||
230 | /** |
|
231 | * {@inheritdoc} |