public function getMissionGames($mission, $user)
    {
        $games = array();
        $missionGames = $this->findGamesByMission($mission);
        foreach ($missionGames as $missionGame) {
            $entry = $this->checkExistingEntry($missionGame->getGame(), $user);
            $games[$missionGame->getGame()->getIdentifier()]['game'] = $missionGame;
            $games[$missionGame->getGame()->getIdentifier()]['entry'] = $entry;
        }
    
        return $games;
    }
public function getMissionGames($mission, $user)
    {
        $games = array();
        $missionGames = $this->findGamesByMission($mission);
        foreach ($missionGames as $missionGame) {
            $entry = $this->checkExistingEntry($missionGame->getGame(), $user);
            $games[$missionGame->getGame()->getIdentifier()]['game'] = $missionGame;
            $games[$missionGame->getGame()->getIdentifier()]['entry'] = $entry;
        }
    
        return $games;
    }
public function getMissionGames ( $ mission , $ user ) { $ games = array ( ) ; $ missionGames = $ this -> findGamesByMission ( $ mission ) ; foreach ( $ missionGames as $ missionGame ) { $ entry = $ this -> checkExistingEntry ( $ missionGame -> getGame ( ) , $ user ) ; $ games [ $ missionGame -> getGame ( ) -> getIdentifier ( ) ] [ 'game' ] = $ missionGame ; $ games [ $ missionGame -> getGame ( ) -> getIdentifier ( ) ] [ 'entry' ] = $ entry ; } return $ games ; }
Find games associated to a mission and add the last entry of the user if it exists
@param unknown $mission
@return multitype:NULL
Find games associated to a mission and add the last entry of the user if it exists