WIP: weather integration

This commit is contained in:
Joren de Graaf
2026-08-11 21:11:31 +02:00
parent f63134d00f
commit 6a20cb80ca
30 changed files with 1054 additions and 31 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
namespace App\Repository;
use App\Entity\Settings;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/** @extends ServiceEntityRepository<Settings> */
class SettingsRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Settings::class); }
/** @return Settings[] */
public function findWithLocation(): array
{
return $this->createQueryBuilder('s')
->andWhere('s.latitude IS NOT NULL')
->andWhere('s.longitude IS NOT NULL')
->getQuery()->getResult();
}
}