@@ -138,7 +138,7 @@ class ProducerAdminController extends BackendController | |||
$usersArray = User::findBy(['id_producer' => $fromProducerId])->all(); | |||
foreach($usersArray as $user) { | |||
Producer::addUser($user->id, $toProducerId); | |||
Producer::addUser($user['user_id'], $toProducerId); | |||
$count ++; | |||
} | |||