![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 80 Pomógł: 0 Dołączył: 8.02.2013 Ostrzeżenie: (0%) ![]() ![]() |
Moje Encje [User] one to many [Owner] one to many [Property] one to many [Tenant].
Połączyłem je w repozytorium User
Chce wyświetlić je w szablonie. Problem jest taki że nie wyświetlają mi się wszyscy właściciele użytkownika poniżej jest screen z dumpa. http://zapodaj.net/7d28ba489cd03.gif.html |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Moderatorzy Postów: 36 559 Pomógł: 6315 Dołączył: 27.12.2004 ![]() |
Chce ci tylko pokazac schemat jak to sie mniej wiecej robi
Wybacz za pseudoif w kodzie, ale nie pamietam juz skladni ifow w szablonach Kod {% for details in QueryBuilder %} {% for detailsowner in details.owner %} <tr> <td>{{detailsowner.name}}</td> {% for detailsproperty in detailsowner.property%} {JESLI to jest kolejny (to jest drugi lub dalszy) element w detailsowner.property} </tr> <tr> <td>Puste pole na WLASCICIELA</td> {KONIEC JESLI} <td>{{detailsproperty.name}}</td> <td>{{detailsproperty.adress}}</td> {% endfor %} </tr> {% endfor %} {% endfor %} Mniej wiecej cos w ten desen |
|
|
![]() ![]() |
![]() |
Aktualny czas: 7.10.2025 - 00:58 |