[Symfony4][SF4][SF] Sortowanie danych na liście rozwijalnej formularza |
[Symfony4][SF4][SF] Sortowanie danych na liście rozwijalnej formularza |
6.10.2022, 23:01:50
Post
#1
|
|
Grupa: Zarejestrowani Postów: 496 Pomógł: 2 Dołączył: 15.07.2011 Skąd: Katowice Ostrzeżenie: (0%) |
Próbuję posortować dane (lista zespołów piłkarskich) w polu (lista rozwijalna) formularza dla Meet (spotkania)
Sortowanie ma być po id ligi (league) Encja Meet jest powiązana relacją z encją Team:
A encja Team z encją League:
Kod formularza :
Mam taki błąd: Argument 1 passed to App\Form\MeetType::App\Form\{closure}() must be an instance of App\Form\EntityRepository, instance of App\Repository\TeamRepository given, called in C:\xampp\htdocs\ligatyperow2\vendor\symfony\doctrine-bridge\Form\Type\EntityType.php on line 32 Mogę prosić o podpowiedź co mam źle ? PS. Sortowanie na razie może być po czymkolwiek bylebym wiedział co mam źle w obecnej implementacji kodu. |
|
|
Wersja Lo-Fi | Aktualny czas: 20.09.2024 - 03:18 |