Seems strangely hard to find out the new way to do this.
I am doing a simple update, such as
UPDATE bb_product
SET product_name = 'Product31', manufacturer_id='3', pack_size='31', cost='31.00', code='12335'
WHERE product_id = 3
followed by:
$modx->exec($sql); // This works
// None of these work
$affectedRows = $modx->rowCount();
$affectedRows = $modx->getCount();
$affectedRows = $modx->getAffectedRows();
Any suggestions/links for how I can do this?
(revo 2.2.10)