Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Symfony] Podwójna relacja w tabeli
stirith
post 14.11.2009, 13:09:33
Post #1





Grupa: Zarejestrowani
Postów: 162
Pomógł: 2
Dołączył: 18.01.2008

Ostrzeżenie: (0%)
-----


Mam tabele:

Kod
sf_friends:
   className: sfFriends
   columns:
     id:
       type: integer(4)
       primary: true
       autoincrement: true
     id_first_friend:
       type: integer(4)
     id_second_friend:
       type: integer(4)
   relations:
     sfGuardUser:
       local: id_first_friend
       foreign: id_profil
       type: one
       foreignType: many
       foreignAlias: sfFriends
     sfGuardUser:
       local: id_second_friend
       foreign: id
       type: one
       foreignType: many
       foreignAlias: sfFriends



Wszystko działa, poza jednym relacje dodaje tylko dla id_second_friend -> czyli wychodzi na to że tworzy jedną relacje, a później przechodząc do drugiej nadpisuje pierwszą, dopiero zaczynam z doctrine, więc pewnie gdzieś głupi błąd popełniłem, proszę o pomoc

Ten post edytował stirith 14.11.2009, 13:10:06
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 08:43