3.6 - Refactoring and Redundant Test Coverage

This commit is contained in:
Adam Wathan
2016-11-15 13:22:44 -05:00
parent 2e92881fb6
commit 9fe42a1aaa
3 changed files with 31 additions and 1 deletions

View File

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