私は refClass 関係で奇妙な振る舞いをしています:
User:
[.....]
MyFriends: {class: User, refClass: UserFriend, local: id_owner, foreign: id_friend, type: many}
UserFriend:
columns:
id_owner: {type: integer(8)}
id_friend: {type: integer(8)}
relations:
Owner: {class: User, local: id_owner, foreign: id, type: one}
Friend: {class: User, local: id_friend, foreign: id, type: one}
はid_owner
友人関係の「所有者」でありid_friend
、友人です。ただし、取得しようとすると$user->getMyFriends()
、同じ$user
結果が得られます。
スキーマの何が問題になっていますか?