Return all games for day

@return \Drupal\mespronos\Entity\Game[]
967414
public function getGames($onlyFuture = FALSE) {
    $ids = $this->getGamesId($onlyFuture);
    return Game::loadMultiple($ids);
  }
509419
private static function getHours(): array
    {
        $hours = [-1 => static::getConstant('TXT_DATETIME_HH', 'TXT_DATETIME_HH')];
        for ($i = 0; $i <= 23; $i++) {
            $hours[$i] = \sprintf('%02s', $i);
        }
        return $hours;
    }
699978
public function getDays()
	{
		return @isset( $this->Value->daysOnly ) && $this->Value->daysOnly && $this->Value->days ? $this->Value->days : $this->Value->d;
		return $this->Value->d;
	}
430902
public function getStatuses()
    {
        $schedules = clone $this->getCollection()
            ->setOrder('status', Zend_Db_Select::SQL_ASC);
        $schedules->getSelect()
            ->group('status')
            ->reset(Zend_Db_Select::COLUMNS)
            ->columns('status');
        $statuses = $schedules->getConnection()
            ->fetchCol($schedules->getSelect());
        $statusArray = array();
        foreach ($statuses as $status) {
            $statusArray[$status] = $status;
        }
        return $statusArray;
    }
1052531
public function getActiveSliderGames()
    {
        $em = $this->serviceLocator->get('doctrine.entitymanager.orm_default');
        $today = new \DateTime("now");
        $today = $today->format('Y-m-d H:i:s');

        // Game active with a start_date before today (or without start_date)
        // and end_date after today (or without end-date)
        $query = $em->createQuery('SELECT g FROM PlaygroundGame\Entity\Game g
            WHERE (g.publicationDate <= :date OR g.publicationDate IS NULL)
            AND (g.closeDate >= :date OR g.closeDate IS NULL)
            AND g.active = true AND g.broadcastPlatform = 1 AND g.pushHome = true');
        $query->setParameter('date', $today);
        $games = $query->getResult();

        // je les classe par date de publication (date comme clé dans le tableau afin de pouvoir merger les objets
        // de type article avec le même procédé en les classant naturellement par date asc ou desc
        $arrayGames = array();
        foreach ($games as $game) {
            if ($game->getPublicationDate()) {
                $key = $game->getPublicationDate()->format('Ymd');
            } elseif ($game->getStartDate()) {
                $key = $game->getStartDate()->format('Ymd');
            } else {
                $key = $game->getUpdatedAt()->format('Ymd');
            }
            $key .= $game->getUpdatedAt()->format('Ymd') . '-' . $game->getId();
            $arrayGames[$key] = $game;
        }

        return $arrayGames;
    }
995705
public function findAll(): array
    {
        $queryBuilder = $this->entityManager->createQueryBuilder();
        $queryBuilder->select('mc')
                     ->from(ModCombination::class, 'mc');

        return $queryBuilder->getQuery()->getResult();
    }
157511
protected function getAllTime() {
        if (!$this->_allTime) {
            $this->_allTime = new AllTimeList($this->version, $this->solution['accountSid']);
        }

        return $this->_allTime;
    }
1264620
protected function getDates()
    {
        $date = new \DateTime ( "now" );
        $date->setTimezone ( new \DateTimeZone ( "America/Sao_Paulo" ) );

        $final = $date->format ( "Y-m-d\TH:i:s" );

        $dateInterval = "P" . ( string ) $this->_days . "D";
        $date->sub ( new \DateInterval ( $dateInterval ) );
        $date->setTime ( 00, 00, 00 );
        $initial = $date->format ( "Y-m-d\TH:i:s" );

        return [
            'initial' => $initial,
            'final'   => $final
        ];
    }
496457
public static function getSlots()
    {
        $slots = array();

        foreach (array_keys(WindowMaker::getStartTimeChoices()) as $hour)
        {
            for ($i=0; $i<14; $i++)
            {
                $date = new \DateTime('+'.$i.' days');

                $slots[$hour.':00'][$date->format('Y-m-d')] = null;
            }
        }

        return $slots;
    }
439759
public function getNbGame() : int {
    $query = \Drupal::entityQuery('game')->condition('day', $this->id());
    $ids = $query->execute();
    return count($ids);
  }
1329027
public static function getWeekDays()
    {
        static $weekdays = null;
        if ($weekdays == null) {
            $weekdays   = array();
            for ($i = 0; $i < 7; $i++) {
                $weekdays[$i] = strftime('%A', mktime(0, 0, 0, 1, $i, 2001));
            }
        }
        return $weekdays;
    }
588383
public function get_weekdays() {
        return array(
            0 => array(
                'shortname' => get_string('sun', 'calendar'),
                'fullname' => get_string('sunday', 'calendar')
            ),
            1 => array(
                'shortname' => get_string('mon', 'calendar'),
                'fullname' => get_string('monday', 'calendar')
            ),
            2 => array(
                'shortname' => get_string('tue', 'calendar'),
                'fullname' => get_string('tuesday', 'calendar')
            ),
            3 => array(
                'shortname' => get_string('wed', 'calendar'),
                'fullname' => get_string('wednesday', 'calendar')
            ),
            4 => array(
                'shortname' => get_string('thu', 'calendar'),
                'fullname' => get_string('thursday', 'calendar')
            ),
            5 => array(
                'shortname' => get_string('fri', 'calendar'),
                'fullname' => get_string('friday', 'calendar')
            ),
            6 => array(
                'shortname' => get_string('sat', 'calendar'),
                'fullname' => get_string('saturday', 'calendar')
            ),
        );
    }
771079
public function findLastEntriesByUser($game, $user, $dateLimit)
    {
        $query = $this->em->createQuery(
            'SELECT e.id FROM PlaygroundGame\Entity\Entry e 
             WHERE e.user = :user AND e.game = :game AND (e.bonus = 0 OR e.bonus IS NULL) AND e.created_at >= :date'
        );
        $query->setParameter('user', $user);
        $query->setParameter('game', $game);
        $query->setParameter('date', $dateLimit);

        $total = $query->getResult();

        return $total;
    }
592996
public function getUpcommingGames($nb_hours, $limit = NULL, $onlyWithoutScore = TRUE) {
    $date_to = new \DateTime(null, new \DateTimeZone('UTC'));
    $date_to->add(new \DateInterval('PT' . (int) $nb_hours . 'H'));
    $now = new \DateTime(null, new \DateTimeZone('UTC'));

    $query = \Drupal::entityQuery('game');

    $query->condition('game_date', $now->format('Y-m-d\TH:i:s'), '>');
    $query->condition('game_date', $date_to->format('Y-m-d\TH:i:s'), '<=');

    if($onlyWithoutScore) {
      $group = $query->orConditionGroup();
      $group->condition('score_team_1', NULL, 'is');
      $group->condition('score_team_2', NULL, 'is');
      $query->condition($group);
    }

    $query->sort('game_date', 'ASC');
    $query->sort('id', 'ASC');

    if($limit) {
      $query->range(0, $limit);
    }

    $ids = $query->execute();
    if ($ids) {
      return Game::loadMultiple($ids);
    }
    return [];
  }
221222
public function getPlayableGames($entry = null)
    {
        $sortedPlayableGames = array();
        foreach ($this->missionGames as $missionGame) {
            $g = $missionGame->getGame();
            
            if ($g->isStarted() && $g->getActive()) {
                if (!$missionGame->getConditions() || $missionGame->fulfillConditions($entry)) {
                    $sortedPlayableGames[$missionGame->getPosition()] = $missionGame;
                }
            }
        }

        return $sortedPlayableGames;
    }
258554
public function findOld(): array
    {
        $queryBuilder = $this->createQuery();

        return (array)$queryBuilder->select('uid')
            ->from($this->getTableName())
            ->where($queryBuilder->expr()->gt('call_date', $queryBuilder->createNamedParameter(0)))
            ->execute()
            ->fetchAll();
    }
1089722
public function getAllBundles() {
		if($this->bundles === null)
			$this->bundles = $this->doGetBundles();
		return $this->bundles;
	}