src/Models/AbstractModel.php 1 location
|
@@ 492-497 (lines=6) @@
|
| 489 |
|
*/ |
| 490 |
|
protected function filterNotSavedProperties(array $properties) |
| 491 |
|
{ |
| 492 |
|
foreach ($this->getMetadata()->getAttributes() as $fieldKey => $propMeta) { |
| 493 |
|
if (true === $propMeta->shouldSave() || !isset($properties[$fieldKey])) { |
| 494 |
|
continue; |
| 495 |
|
} |
| 496 |
|
unset($properties[$fieldKey]); |
| 497 |
|
} |
| 498 |
|
return $properties; |
| 499 |
|
} |
| 500 |
|
|
src/Models/Model.php 1 location
|
@@ 447-452 (lines=6) @@
|
| 444 |
|
*/ |
| 445 |
|
protected function filterNotSavedProperties(array $properties) |
| 446 |
|
{ |
| 447 |
|
foreach ($this->getMetadata()->getRelationships() as $fieldKey => $propMeta) { |
| 448 |
|
if (true === $propMeta->shouldSave() || !isset($properties[$fieldKey])) { |
| 449 |
|
continue; |
| 450 |
|
} |
| 451 |
|
unset($properties[$fieldKey]); |
| 452 |
|
} |
| 453 |
|
return parent::filterNotSavedProperties($properties); |
| 454 |
|
} |
| 455 |
|
|