andrewscofield / parse.com-php-library

246 stars 137 forks source link

"decrement" at Object #107

Open davidtavarez opened 11 years ago

davidtavarez commented 11 years ago

you need to modify the parameters to like this

public function decrement($field, $amount)

yao23 commented 9 years ago

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 commented 9 years ago

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