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

Ignore:
Timestamp:
Aug 27, 2008, 6:38:10 PM (12 years ago)
Author:
ebihara
Message:

Member::getProfile() で MemberProfilePeer::retrieveByMemberIdAndProfileName() をコールするように修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/model/Member.php

    r8127 r8130  
    1717  public function getProfile($profileName)
    1818  {
    19     $c = new Criteria();
    20     $c->add(ProfilePeer::NAME, $profileName);
    21     $c->add(MemberProfilePeer::MEMBER_ID, $this->getId());
    22     $c->addJoin(MemberProfilePeer::PROFILE_ID, ProfilePeer::ID);
    23     $profile = MemberProfilePeer::doSelectOne($c);
     19    $profile = MemberProfilePeer::retrieveByMemberIdAndProfileName($this->getId(), $profileName);
    2420
    2521    if (!$profile) {
Note: See TracChangeset for help on using the changeset viewer.