Wiki

Articles tagged with "conditions"X
Displaying 1-1 of 1 result(s).

Using updateAll and deleteAll with scopes

Created 5 months ago by le_topHow-tos4 comments – viewed 6,560 times – ( +5 ) – version 1.1
Using CActiveRecord->updateAll() and CActiveRecord->deleteAll() with scopes and criteria requires some tricks that are explained in this article. While findAll() , find() and some other methods use scopes automatically, updateAll() and deleteAll() do not.