fix bill seeder

This commit is contained in:
omair saleh
2022-02-22 01:51:23 +08:00
parent 65cc68ba06
commit 4434535e96
+1 -1
View File
@@ -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()