![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 27 Pomógł: 0 Dołączył: 7.03.2003 Skąd: Warszawa Ostrzeżenie: (0%) ![]() ![]() |
Czy istnieje w doctrine obsługa tabel w odwróconym wymiarze?
Mam tabelę: Kod User: tableName: users columns: id: { type: integer, unsigned: true, primary: true, autoincrement: true } login: { type: string(20) } UserProfile: tableName: users_profiles columns: user_id: { type: integer, unsigned: true, primary: true } key: { type: string(50) } value: { type: string(255) } zapełnioną danymi: Kod User: user_1: login: user1 UserProfile: user_1_profile_1: key: email value: xxx@xxx.pl user_1_profile_2: key: birthday value: 2000-12-02 i chcę się odwołać do emaila przez:
Da się to zrobić używając rozwiązań z doctrine? Ten post edytował mdx 4.09.2009, 11:36:13 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 53 Pomógł: 5 Dołączył: 13.04.2007 Skąd: Szczecin Ostrzeżenie: (0%) ![]() ![]() |
uzyj DQL wraz z INDEXBY i zapisu $user['profile']['email']
btw. uzywanie $user->profile->email was kiedys zabije |
|
|
![]() ![]() |
![]() |
Aktualny czas: 30.09.2025 - 02:25 |