Closed kylebarney closed 3 years ago
@pdbreen Can we require this for the time being and you work next week to separate out the dependency again?
The bookings table shouldn't have a FK to order - ie, remove this $table->foreignIdFor(app('order'));
OrderItem has a morph relation to sellable (ie, a booking). Getting an OrderItem (and Order) from a booking should be via the inverse of the morph, not its own relation.
I opened a new PR to remove that relation: https://github.com/tipoff/bookings/pull/96
…le migration