src/Models/AbstractModel.php 1 location
|
@@ 513-518 (lines=6) @@
|
| 510 |
|
*/ |
| 511 |
|
protected function filterNotSavedProperties(array $properties) |
| 512 |
|
{ |
| 513 |
|
foreach ($this->getMetadata()->getAttributes() as $fieldKey => $propMeta) { |
| 514 |
|
if (true === $propMeta->shouldSave() || !isset($properties[$fieldKey])) { |
| 515 |
|
continue; |
| 516 |
|
} |
| 517 |
|
unset($properties[$fieldKey]); |
| 518 |
|
} |
| 519 |
|
return $properties; |
| 520 |
|
} |
| 521 |
|
|
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 |
|
|