/** * @return int */ public static function affectedRows() { $srModelObjectList = new ActiveRecordList(self::getCalledClass()); return $srModelObjectList->affectedRows(); }