public update ([mixed $data], [mixed $whiteList])
Updates a model instance. If the instance doesn’t exist in the persistence it will throw an exception Returning true on success or false otherwise.
//Updating a robot name $robot = Robots::findFirst("id=100"); $robot->name = "Biomass"; $robot->update();
Please login to continue.