ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 11720


Ignore:
Timestamp:
May 20, 2009, 10:37:11 PM (11 years ago)
Author:
ogawa
Message:

#3939:fixed a bug for MemberRelationshipTable::getFriendMemberIds() returns MemberRelationship?.id instead of Member.id

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/model/doctrine/MemberRelationshipTable.class.php

    r11657 r11720  
    4646
    4747    $collection = $this->createQuery()
    48       ->select('id')
    49       ->where('member_id_to = ?', $memberId)
     48      ->select('member_id_to')
     49      ->where('member_id_from = ?', $memberId)
    5050      ->andWhere('is_friend = ?', true)
    5151      ->execute();
     
    5353    foreach ($collection as $record)
    5454    {
    55       $result[] = $record->id;
     55      $result[] = $record->member_id_to;
    5656    }
    5757
Note: See TracChangeset for help on using the changeset viewer.