Browse Source

Script permettant de lier les users importés à la boulangerie "Le Chat des Noisettes"

master
keun 8 years ago
parent
commit
c116843a94
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      backend/controllers/UserController.php

+ 13
- 0
backend/controllers/UserController.php View File

], ],
]; ];
} }
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. * Lists all User models.

Loading…
Cancel
Save