I'm new to propel, and I'm looking for a way to increment a value in my MySQL database, without having to do a full read-update-write cycle. Such as this:
UPDATE books SET popularity = popularity + 1 WHERE id = 123
Of course I can do:
$book = new BookQuery::create()->findPk(123);
$book->setPopularity($book->getPopularity() + 1);
$book->save();
But that would result in 2 queries (the SELECT and the UPDATE).
Is there a neat way to do this in Propel?