Doctrine több oszlopos UPDATE
Hogyan tudok egy lekérdezésben több oszlopot updatelni?
Manual szerint egy oszlop frissítése így zajlik:ez nem jó:ez sem:Vagy ez nem támogatott? :)
■ Manual szerint egy oszlop frissítése így zajlik:
- rows = $q->update('Account')
- ->set('amount', 'amount + ?', '200')
- ->where('id > 200')
- ->execute();
- rows = $q->update('Account')
- ->set('amount', 'amount + ?', '200')
- ->set('amount2', 'amount2 + ?', '500')
- ->where('id > 200')
- ->execute();
- rows = $q->update('Account')
- ->set('amount', 'amount + ?', '200','amount2', 'amount2 + ?', '500')
- ->where('id > 200')
- ->execute();
És ez?