How to change user fields programmatically in Osclass?

111 Views Asked by At

I need to change user field "b_company" in Osclass. But can't find any information about how can i do that.

1

There are 1 best solutions below

0
Sergey  Popov On

It was not different solution:

          User::newInstance()->updateByPrimaryKey(['b_company' => 1], $user['pk_i_id']);