src/Models/AbstractModel.php 1 location
|
@@ 491-496 (lines=6) @@
|
488 |
|
*/ |
489 |
|
protected function filterNotSavedProperties(array $properties) |
490 |
|
{ |
491 |
|
foreach ($this->getMetadata()->getAttributes() as $fieldKey => $propMeta) { |
492 |
|
if (true === $propMeta->shouldSave() || !isset($properties[$fieldKey])) { |
493 |
|
continue; |
494 |
|
} |
495 |
|
unset($properties[$fieldKey]); |
496 |
|
} |
497 |
|
return $properties; |
498 |
|
} |
499 |
|
|
src/Models/Model.php 1 location
|
@@ 465-470 (lines=6) @@
|
462 |
|
*/ |
463 |
|
protected function filterNotSavedProperties(array $properties) |
464 |
|
{ |
465 |
|
foreach ($this->getMetadata()->getRelationships() as $fieldKey => $propMeta) { |
466 |
|
if (true === $propMeta->shouldSave() || !isset($properties[$fieldKey])) { |
467 |
|
continue; |
468 |
|
} |
469 |
|
unset($properties[$fieldKey]); |
470 |
|
} |
471 |
|
return parent::filterNotSavedProperties($properties); |
472 |
|
} |
473 |
|
|