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 |
|
|
|
Post
#3
|
|
|
Grupa: Zarejestrowani Postów: 1 385 Pomógł: 55 Dołączył: 1.03.2005 Skąd: śląsk Ostrzeżenie: (0%)
|
|
|
|
|
mdx [doctrine] sub obiekt z tabeli (rel_id, key, value) 4.09.2009, 11:34:20
Crozin Trochę poza tematem... czy konstrukcja na zasadzie... 4.09.2009, 15:52:04
mdx Cytat(murwazy @ 4.09.2009, 15:36:33 )... 4.09.2009, 17:02:26
murwazy Cytat(mdx @ 4.09.2009, 18:02:26 ) No ... 6.09.2009, 08:50:29
AxZx Cytat(murwazy @ 6.09.2009, 09:50:29 )... 6.09.2009, 20:45:54
murwazy Cytat(AxZx @ 6.09.2009, 21:45:54 ) zn... 7.09.2009, 10:56:32 ![]() ![]() |
|
Aktualny czas: 28.12.2025 - 00:45 |