|
|
|
|
|
|
|
|
->andWhere('distribution.date >= :date_begin') |
|
|
->andWhere('distribution.date >= :date_begin') |
|
|
->andWhere('order.id_subscription = :id_subscription'); |
|
|
->andWhere('order.id_subscription = :id_subscription'); |
|
|
|
|
|
|
|
|
if ($this->date_end) { |
|
|
|
|
|
$orders->andWhere('distribution.date <= :date_end'); |
|
|
|
|
|
$params[':date_end'] = $this->date_end; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$orders->params($params); |
|
|
$orders->params($params); |
|
|
|
|
|
|
|
|
$ordersArray = $orders->all(); |
|
|
$ordersArray = $orders->all(); |
|
|
|
|
|
|
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
ProductOrder::deleteAll(['id_order' => $order->id]); |
|
|
|
|
|
$order->delete(); |
|
|
$order->delete(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |