8000 [PropertyAccess] stop overwriting once a reference is reached (3rd) by bananer · Pull Request #13835 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Closed
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[PropertyAccess] stop overwriting once a reference is reached
  • Loading branch information
bananer committed Mar 3, 2015
commit 15b890f15b83e197149fbe3ce80cf12165f8f925
7 changes: 4 additions & 3 deletions src/Symfony/Component/PropertyAccess/PropertyAccessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,11 @@ public function setValue(&$objectOrArray, $propertyPath, $value)
} else {
$this->writeProperty($objectOrArray, $property, $value);
}

$overwrite = !$propertyValues[$i][self::IS_REF];
}

$value = & $objectOrArray;
$overwrite = !$propertyValues[$i][self::IS_REF];
}
}

Expand Down Expand Up @@ -150,9 +151,9 @@ public function isWritable($objectOrArray, $propertyPath)
return false;
}
}
}

$overwrite = !$propertyValues[$i][self::IS_REF];
$overwrite = !$propertyValues[$i][self::IS_REF];
}
}

return true;
Expand Down
0