Nette Database 2.3, how to increment?

motorcb
Member | 525
+
+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 | 1126
+
+5
-
$activeRow->update(['count+=' => 1]);