Excluded/ODM/DocumentEntity.php 1 location
|
@@ 412-424 (lines=13) @@
|
409 |
|
*/ |
410 |
|
public function hasUpdates($field = null, $atomicsOnly = false) |
411 |
|
{ |
412 |
|
if (empty($field)) { |
413 |
|
if (!empty($this->updates) || !empty($this->atomics)) { |
414 |
|
return true; |
415 |
|
} |
416 |
|
|
417 |
|
foreach ($this->getFields(false) as $value) { |
418 |
|
if ($value instanceof DocumentAccessorInterface && $value->hasUpdates()) { |
419 |
|
return true; |
420 |
|
} |
421 |
|
} |
422 |
|
|
423 |
|
return false; |
424 |
|
} |
425 |
|
|
426 |
|
foreach ($this->atomics as $operations) { |
427 |
|
if (array_key_exists($field, $operations)) { |
Excluded/ORM/RecordEntity.php 1 location
|
@@ 482-494 (lines=13) @@
|
479 |
|
*/ |
480 |
|
public function hasUpdates($field = null) |
481 |
|
{ |
482 |
|
if (empty($field)) { |
483 |
|
if (!empty($this->updates)) { |
484 |
|
return true; |
485 |
|
} |
486 |
|
|
487 |
|
foreach ($this->getFields(false) as $field => $value) { |
488 |
|
if ($value instanceof RecordAccessorInterface && $value->hasUpdates()) { |
489 |
|
return true; |
490 |
|
} |
491 |
|
} |
492 |
|
|
493 |
|
return false; |
494 |
|
} |
495 |
|
|
496 |
|
if (array_key_exists($field, $this->updates)) { |
497 |
|
return true; |