parse.com-php-library icon indicating copy to clipboard operation
parse.com-php-library copied to clipboard

"decrement" at Object

Open davidtavarez opened this issue 12 years ago • 2 comments
trafficstars

you need to modify the parameters to like this

public function decrement($field, $amount)

davidtavarez avatar Jul 22 '13 14:07 davidtavarez

Hi David,

I use Composer to import Parse PHP SDK as require { "parse/php-sdk" : "1.0.*"}, I can find increment but decrement method in Parse\ParseObject.php. Is it because of the version of parse-php-sdk or some other reason? Do you know knows how to use decrement?

Thanks in advance!

Yao

yao23 avatar Feb 09 '15 18:02 yao23

I tried to use increment with negative number and it works, but still curious why they don't implement decrement.

yao23 avatar Feb 09 '15 23:02 yao23