diff --git a/app/Models/Booking.php b/app/Models/Booking.php index b190e349..69b8a745 100644 --- a/app/Models/Booking.php +++ b/app/Models/Booking.php @@ -102,7 +102,7 @@ class Booking extends AbstractModel implements Documentable, Transactionable */ public function bills(): hasManyDeep { - return $this->hasManyDeep(Transaction::class, [Transaction::class.' as alias']); + return $this->hasManyDeep(Transaction::class, [Transaction::class.' as alias'], [['owner_type', 'owner_id'], ['owner_type', 'owner_id']], [null, null]); } protected static function booted()