'ID', 'id_order' => 'Commande', 'id_order_status' => 'Statut', 'date' => 'Date', ]; } /* * Relations */ public function getOrder() { return $this->hasOne(User::className(), ['id' => 'id_order']); } public function getOrderStatus() { return $this->hasOne(OrderStatus::className(), ['id' => 'id_order_status']); } /** * Retourne les options de base nécessaires à la fonction de recherche. * * @return array */ public static function defaultOptionsSearch() { return [ 'with' => [], 'join_with' => ['order', 'orderStatus'], 'orderby' => 'date ASC', 'attribute_id_producer' => '' ] ; } }