Only return updated properties not resolvable ones

fixes #406

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2018-02-28 12:21:14 +01:00
parent f32721d1e6
commit 0e092d3495
2 changed files with 1 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ class RelationalEntity extends Entity implements \JsonSerializable {
foreach ($properties as $property => $value) {
if (strpos($property, '_') !== 0 && $reflection->hasProperty($property)) {
$propertyReflection = $reflection->getProperty($property);
if (!$propertyReflection->isPrivate()) {
if (!$propertyReflection->isPrivate() && !in_array($property, $this->_resolvedProperties, true)) {
$json[$property] = $this->getter($property);
}
}