lithium\data\Entity::decrement()
Decrements a field by the specified value. Works identically to increment(), but in
reverse.
Parameters
-
string
$fieldThe name of the field to decrement.
-
string
$valueThe value by which to decrement the field. Defaults to
1.
Returns
integerReturns the new value of $field, after modification.
Source
public function decrement($field, $value = 1) {
return $this->increment($field, $value * -1);
}