wip grapper tournaments
This commit is contained in:
1 parent
acf74c5e82
commit
06c014fa1b
9 files changed
+165
-42
No files matched your search
@@ -22,8 +22,8 @@ class SofaScoreRosa extends Model
|
||||
return $this->belongsTo(Country::class);
|
||||
}
|
||||
|
||||
public function tournament()
|
||||
public function tournament_rosa()
|
||||
{
|
||||
return $this->belongsTo(SofaScoreTournament::class, 'ss_tournament_id', 'tournament_id');
|
||||
return $this->belongsTo(SofaScoreRosaTournament::class, 'ssteam_id', 'ssteam_id');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class SofaScoreRosaTournament extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'ssteam_id',
|
||||
'ss_tournament_id',
|
||||
'grapped',
|
||||
'disabled',
|
||||
];
|
||||
|
||||
public function tournament()
|
||||
{
|
||||
return $this->belongsTo(SofaScoreTournament::class, 'ss_tournament_id', 'tournament_id');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user