Nette Database 2.3, how to increment?

Notice: This thread is very old.
motorcb
Member | 551
+
+1
-

In Nette 2.3 is added support for += and -= in UPDATE statement.

How to use += in code?

$activeRow = $this->findBy( array( “id” ⇒ 1) )->limit( 1 )->fetch();

How to increment column name count ?

Milo
Nette Core | 1283
+
+5
-
$activeRow->update(['count+=' => 1]);