Diagnostic BDD complet
Si toutes les sections ci-dessous se remplissent avec les bons accents, la couche données est OK et on peut attaquer la reconstruction HTML.
1. Pays étrangers (France exclue)
Repository_Category::findCountriesForHome(FRANCE_ID)
| ID | Drapeau | Nom (FR) | Code | Annonces | URL |
|---|---|---|---|---|---|
| 130 | ![]() |
Belgique | be |
51 | /chambres-d-hotes/belgique-130 |
| 4935 | ![]() |
Canada | ca |
0 | /chambres-d-hotes/canada-4935 |
| 376 | ![]() |
Espagne | es |
258 | /chambres-d-hotes/espagne-376 |
| 375 | ![]() |
Italie | it |
0 | /chambres-d-hotes/italie-375 |
| 219 | ![]() |
Maroc | ma |
15 | /chambres-d-hotes/maroc-219 |
| 183 | ![]() |
Portugal | pt |
2 | /chambres-d-hotes/portugal-183 |
| 186 | ![]() |
Suisse | ch |
7 | /chambres-d-hotes/suisse-186 |
2. Régions françaises (22)
Repository_Category::findFrenchRegions() — attendu : 22 régions historiques
- Alsace (id=12, 97 annonces)
- Aquitaine (id=4, 294 annonces)
- Auvergne (id=13, 133 annonces)
- Bourgogne (id=14, 122 annonces)
- Bretagne (id=8, 273 annonces)
- Centre - Val de Loire (id=47, 174 annonces)
- Champagne Ardennes (id=18, 69 annonces)
- Corse (id=15, 73 annonces)
- Dom Tom - Outre Mer (id=122, 61 annonces)
- Franche-Comte (id=60, 62 annonces)
- Ile de France (id=11, 81 annonces)
- Languedoc Roussillon (id=23, 276 annonces)
- Limousin (id=22, 58 annonces)
- Lorraine (id=78, 70 annonces)
- Midi-Pyrenees (id=21, 353 annonces)
- Nord Pas de Calais (id=20, 71 annonces)
- Normandie (id=19, 224 annonces)
- Pays de la Loire (id=98, 134 annonces)
- Picardie (id=104, 68 annonces)
- Poitou Charentes (id=17, 112 annonces)
- Provence Alpes Cote d'Azur (id=10, 400 annonces)
- Rhone Alpes (id=2, 489 annonces)
3. Départements français (0)
Repository_Category::findFrenchDepartments() — attendu : ~96 dpts + DOM-TOM (vu dans le HTML : 95 + 7 outre-mer = 102 environ)
Aucun département trouvé. Le filtre est peut-être trop strict — vérifier le pattern `chemin LIKE ' > France >%' AND cpdpt != '0' AND catprincipale=1`.
4. Annonces À LA UNE (3)
Repository_Site::findALaUne(3) + JOIN département + photo principale en batch via Repository_Image::findMainBySites()
👆 Pour chaque carte, vérifie :
✓ La photo s'affiche (sinon il y a un souci de chemin ou de champ upl400 vide).
✓ L'URL générée matche (à un détail près) celle du legacy de l'annonce.
✓ Le nom du département est rempli (JOIN sur NRef_cat).
