@@ -47,19 +47,6 @@ class UserController extends Controller | |||
], | |||
]; | |||
} | |||
public function actionInituseretablissement() { | |||
$user = User::find()->all() ; | |||
foreach($users as $u) { | |||
$user_etab = new \common\models\UserEtablissement ; | |||
$user_etab->id_user = $u->id ; | |||
$user_etab->id_etablissement = 1 ; | |||
$user_etab->save() ; | |||
} | |||
} | |||
/** | |||
* Lists all User models. |