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()
499
499
* Execute a query to get only the first result.
500
500
*
501
501
* @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
502
503
*
503
504
* @return array|ParseObject Returns the first object or an empty array
504
505
*/
505
- public function first ($ useMasterKey = false )
506
+ public function first ($ useMasterKey = false , $ decodeObjects = true )
506
507
{
507
508
$ this ->limit = 1 ;
508
- $ result = $ this ->find ($ useMasterKey );
509
+ $ result = $ this ->find ($ useMasterKey, $ decodeObjects );
509
510
if (count ($ result )) {
510
511
return $ result [0 ];
511
512
} else {
You can’t perform that action at this time.
0 commit comments