File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -499,13 +499,14 @@ public function _getOptions()
499499 * Execute a query to get only the first result.
500500 *
501501 * @param bool $useMasterKey If the query should use the master key
502+ * @param bool $decodeObjects If set to false, will not return raw data instead of ParseObject instances
502503 *
503504 * @return array|ParseObject Returns the first object or an empty array
504505 */
505- public function first ($ useMasterKey = false )
506+ public function first ($ useMasterKey = false , $ decodeObjects = true )
506507 {
507508 $ this ->limit = 1 ;
508- $ result = $ this ->find ($ useMasterKey );
509+ $ result = $ this ->find ($ useMasterKey, $ decodeObjects );
509510 if (count ($ result )) {
510511 return $ result [0 ];
511512 } else {
You can’t perform that action at this time.
0 commit comments