wip
This commit is contained in:
1 parent
d62d5c5e8e
commit
1723221b88
16 files changed
+980
-16502
No files matched your search
@@ -14,7 +14,7 @@ class Event extends Model
|
||||
'competition_group_id',
|
||||
'home_id',
|
||||
'away_id',
|
||||
'txodds_id',
|
||||
'tx_id',
|
||||
'provider_id',
|
||||
'betaid_id',
|
||||
'betradar_id',
|
||||
@@ -27,27 +27,27 @@ class Event extends Model
|
||||
|
||||
public function country()
|
||||
{
|
||||
return $this->belongsTo(Country::class, 'country_id', 'txodds_id');
|
||||
return $this->belongsTo(Country::class, 'country_id', 'tx_id');
|
||||
}
|
||||
|
||||
public function group()
|
||||
{
|
||||
return $this->hasOne(Group::class, 'txodds_id', 'group_id');
|
||||
return $this->hasOne(Group::class, 'tx_id', 'group_id');
|
||||
}
|
||||
|
||||
public function competition_group()
|
||||
{
|
||||
return $this->hasOne(CompetitionGroup::class, 'txodds_id', 'competition_group_id');
|
||||
return $this->hasOne(CompetitionGroup::class, 'tx_id', 'competition_group_id');
|
||||
}
|
||||
|
||||
public function home()
|
||||
{
|
||||
return $this->hasOne(Element::class, 'txodds_id', 'home_id');
|
||||
return $this->hasOne(Element::class, 'tx_id', 'home_id');
|
||||
}
|
||||
|
||||
public function away()
|
||||
{
|
||||
return $this->hasOne(Element::class, 'txodds_id', 'away_id');
|
||||
return $this->hasOne(Element::class, 'tx_id', 'away_id');
|
||||
}
|
||||
|
||||
public function multiline_client()
|
||||
|
||||
Reference in new issue
Block a user