|
|
|
|
|
|
|
|
$params = Yii::$app->request->queryParams; |
|
|
$params = Yii::$app->request->queryParams; |
|
|
|
|
|
|
|
|
$query = (new \yii\db\Query()) |
|
|
$query = (new \yii\db\Query()) |
|
|
->select('user.id AS user_id, *') |
|
|
|
|
|
|
|
|
->select(['user.id AS user_id', 'user.prenom','user.nom','user.telephone','user.email','user.created_at','user.date_derniere_connexion']) |
|
|
->from('user, user_etablissement') |
|
|
->from('user, user_etablissement') |
|
|
->where('user.id = user_etablissement.id_user') |
|
|
->where('user.id = user_etablissement.id_user') |
|
|
->andWhere('user_etablissement.actif = 1') |
|
|
->andWhere('user_etablissement.actif = 1') |