mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-03 20:48:34 +00:00
3.6 - Refactoring and Redundant Test Coverage
This commit is contained in:
@@ -16,7 +16,7 @@ class Order extends Model
|
||||
public function cancel()
|
||||
{
|
||||
foreach ($this->tickets as $ticket) {
|
||||
$ticket->update(['order_id' => null]);
|
||||
$ticket->release();
|
||||
}
|
||||
|
||||
$this->delete();
|
||||
|
||||
Reference in New Issue
Block a user