From 8dcace6add2cb9a6707913936252c754b597aec4 Mon Sep 17 00:00:00 2001 From: Osniel Gonzalez Date: Mon, 6 Oct 2014 23:28:40 -0400 Subject: [PATCH] Made properties inside ParseObject that implement \Parse\Internal\Encodable to be encodable. This fixes the issue where the instances of ParseGeoPoint were not being encoded. --- src/Parse/ParseObject.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Parse/ParseObject.php b/src/Parse/ParseObject.php index acc1a3b6..958b05f6 100755 --- a/src/Parse/ParseObject.php +++ b/src/Parse/ParseObject.php @@ -787,12 +787,12 @@ public function _encode() $out[$key] = $value; } foreach ($this->estimatedData as $key => $value) { - if (is_object($value) && $value instanceof ParseObject) { + if (is_object($value) && $value instanceof \Parse\Internal\Encodable) { $out[$key] = $value->_encode(); } else if (is_array($value)) { $out[$key] = array(); foreach ($value as $item) { - if (is_object($item) && $item instanceof ParseObject) { + if (is_object($item) && $item instanceof \Parse\Internal\Encodable) { $out[$key][] = $item->_encode(); } else { $out[$key][] = $item;