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

Using updateAll and deleteAll with scopes

Created 9 months ago by le_topHow-tos4 comments – viewed 10,986 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.