You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
330 B
PHTML
22 lines
330 B
PHTML
2 years ago
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace App\Model;
|
||
|
|
||
|
class Game extends Model
|
||
|
{
|
||
|
protected $table = 'tab_game';
|
||
|
|
||
|
public function gameSource()
|
||
|
{
|
||
|
return $this->hasOne(GameSource::class, 'game_id', 'id');
|
||
|
}
|
||
|
|
||
|
public function logo()
|
||
|
{
|
||
|
return $this->hasOne(Image::class, 'id', 'icon');
|
||
|
}
|
||
|
|
||
|
}
|