src/Models/Model.php 1 location
|
@@ 462-467 (lines=6) @@
|
459 |
|
*/ |
460 |
|
protected function filterNotSavedProperties(array $properties) |
461 |
|
{ |
462 |
|
foreach ($this->getMetadata()->getRelationships() as $fieldKey => $propMeta) { |
463 |
|
if (true === $propMeta->shouldSave() || !isset($properties[$fieldKey])) { |
464 |
|
continue; |
465 |
|
} |
466 |
|
unset($properties[$fieldKey]); |
467 |
|
} |
468 |
|
return parent::filterNotSavedProperties($properties); |
469 |
|
} |
470 |
|
|
src/Models/AbstractModel.php 1 location
|
@@ 508-513 (lines=6) @@
|
505 |
|
*/ |
506 |
|
protected function filterNotSavedProperties(array $properties) |
507 |
|
{ |
508 |
|
foreach ($this->getMetadata()->getAttributes() as $fieldKey => $propMeta) { |
509 |
|
if (true === $propMeta->shouldSave() || !isset($properties[$fieldKey])) { |
510 |
|
continue; |
511 |
|
} |
512 |
|
unset($properties[$fieldKey]); |
513 |
|
} |
514 |
|
return $properties; |
515 |
|
} |
516 |
|
|