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 |
|
|
src/Models/AbstractModel.php 1 location
|
@@ 497-502 (lines=6) @@
|
494 |
|
*/ |
495 |
|
protected function filterNotSavedProperties(array $properties) |
496 |
|
{ |
497 |
|
foreach ($this->getMetadata()->getAttributes() as $fieldKey => $propMeta) { |
498 |
|
if (true === $propMeta->shouldSave() || !isset($properties[$fieldKey])) { |
499 |
|
continue; |
500 |
|
} |
501 |
|
unset($properties[$fieldKey]); |
502 |
|
} |
503 |
|
return $properties; |
504 |
|
} |
505 |
|
|