wip
This commit is contained in:
1 parent
c394f7afba
commit
44af3f2caa
21 files changed
+222
-151
No files matched your search
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class RosaTournament extends Model
|
||||
{
|
||||
//
|
||||
}
|
||||
@@ -8,7 +8,7 @@ class SofaScorePlayerPerSeason extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'ss_player_id',
|
||||
'tx_team_id',
|
||||
'ss_team_id',
|
||||
'season',
|
||||
'events_played_home',
|
||||
'events_played_away',
|
||||
|
||||
@@ -35,11 +35,11 @@ class StatisticFixtures extends Model
|
||||
|
||||
public function home()
|
||||
{
|
||||
return $this->belongsTo(Element::class);
|
||||
return $this->belongsTo(SofaScoreRosa::class, 'home_id', 'ss_team_id');
|
||||
}
|
||||
|
||||
public function away()
|
||||
{
|
||||
return $this->belongsTo(Element::class);
|
||||
return $this->belongsTo(SofaScoreRosa::class, 'away_id', 'ss_team_id');
|
||||
}
|
||||
}
|
||||
@@ -80,6 +80,6 @@ class StatistikoPlayer extends Model
|
||||
|
||||
public function details()
|
||||
{
|
||||
return $this->belongsTo(StatistikoDetail::class, 'tm_player_id', 'tm_player_id');
|
||||
return $this->belongsTo(StatistikoDetail::class, 'ss_player_id', 'ss_player_id');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user