Browse Source

[Backend] Correctif modification / suppression abonnement #157

refactoring
Guillaume 2 years ago
parent
commit
f95e05ed6c
1 changed files with 0 additions and 6 deletions
  1. +0
    -6
      common/models/Subscription.php

+ 0
- 6
common/models/Subscription.php View File

->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();
} }
} }

Loading…
Cancel
Save