->with('commandeProduits') | ->with('commandeProduits') | ||||
->joinWith('production') | ->joinWith('production') | ||||
->where('production.date > '.$date_start) | ->where('production.date > '.$date_start) | ||||
->andWhere('production.id_etablissement = '.Yii::$app->user->identity->id_etablissement) | |||||
->all() ; | ->all() ; | ||||
foreach($commandes as $c) { | foreach($commandes as $c) { |