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

Changeset 11332


Ignore:
Timestamp:
Apr 16, 2009, 8:58:28 PM (11 years ago)
Author:
ebihara
Message:

#3765:fixed some models to work registering correctly

Location:
OpenPNE3/branches/goto_doctrine/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/branches/goto_doctrine/lib/form/doctrine/MemberConfigForm.class.php

    r11307 r11332  
    3636      $this->isNew = true;
    3737    }
    38 
    39     $this->member->save();
    4038
    4139    parent::__construct(array(), $options, $CSRFSecret);
     
    141139  public function save()
    142140  {
     141    $this->member->save();
     142
    143143    foreach ($this->getValues() as $key => $value)
    144144    {
  • OpenPNE3/branches/goto_doctrine/lib/model/doctrine/MemberRelationship.class.php

    r11307 r11332  
    7171  {
    7272    $this->setIsFriend(false);
    73     $result = $this->save();
    74     if (!$result) {
    75       return false;
    76     }
     73    $this->save();
    7774
    7875    $this->getToInstance()->setIsFriend(false);
    79     return $this->getToInstance()->save();
     76
     77    return true;
    8078  }
    8179
     
    8482    $this->setIsFriendPre(false);
    8583    $resultFrom = $this->save();
     84
    8685    $this->getToInstance()->setIsFriendPre(false);
    87     $resultTo = $this->getToInstance()->save();
     86    $this->getToInstance()->save();
    8887
    89     return $resultFrom && $resultTo;
     88    return true;
    9089  }
    9190
Note: See TracChangeset for help on using the changeset viewer.