...
This commit is contained in:
parent
164bb95eca
commit
30248ae4ef
6039 changed files with 3364 additions and 2287 deletions
3
pfosten/app/Round.php
Normal file → Executable file
3
pfosten/app/Round.php
Normal file → Executable file
|
|
@ -4,6 +4,7 @@ namespace App;
|
|||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use App\Game;
|
||||
use Log;
|
||||
|
||||
class Round extends Model
|
||||
{
|
||||
|
|
@ -16,10 +17,10 @@ class Round extends Model
|
|||
return $this->hasMany('App\Game');
|
||||
}
|
||||
|
||||
|
||||
// true, wenn irgend ein Game locked ist.
|
||||
public static function hasLockedGame($round_id)
|
||||
{
|
||||
//Log::info("Check Round::HasLockedGame => ".$round_id);
|
||||
$games = Game::where('round_id', $round_id)->get();
|
||||
foreach ($games as $game) {
|
||||
if (Game::locked($game->id)==true) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue