public static function update_temp($data_array) { $o = new facility_stocks_temp(); $o->fromArray($data_array); $o->save(); return TRUE; }