'Utilisateur', ]; } public function save() { $user = UserModel::searchOne([ 'id' => $this->id_user ]) ; if($user) { $user->id_producer = GlobalParam::getCurrentProducerId() ; if($user->status != UserModel::STATUS_PRODUCER && $user->status != UserModel::STATUS_ADMIN) { $user->status = UserModel::STATUS_PRODUCER ; } return $user->save(); } return false; } }