method chain broken

User::findOne($id)->set($row)->save();

error.