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
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