mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
92 - Dealing with Out of Sync Mocks
This commit is contained in:
@@ -27,7 +27,7 @@ class Ticket extends Model
|
||||
|
||||
public function claimFor($order)
|
||||
{
|
||||
$this->code = TicketCode::generate();
|
||||
$this->code = TicketCode::generateFor($this);
|
||||
$order->tickets()->save($this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user