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

Ignore:
Timestamp:
Apr 5, 2009, 6:28:34 AM (14 years ago)
Author:
ebihara
Message:

#3765:imported new models for Doctrine from some old models for Propel to enable to login

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/branches/goto_doctrine/apps/mobile_frontend/modules/member/actions/actions.class.php

    r11151 r11219  
    2626  {
    2727    $this->gadgetConfig = sfConfig::get('op_mobile_gadget_list');
    28     $this->mobileTopGadgets = GadgetPeer::retrieveMobileTopGadgets();
    29     $this->mobileContentsGadgets = GadgetPeer::retrieveMobileContentsGadgets();
    30     $this->mobileBottomGadgets = GadgetPeer::retrieveMobileBottomGadgets();
     28    $this->mobileTopGadgets = Doctrine::getTable('Gadget')->retrieveMobileTopGadgets();
     29    $this->mobileContentsGadgets = Doctrine::getTable('Gadget')->retrieveMobileContentsGadgets();
     30    $this->mobileBottomGadgets = Doctrine::getTable('Gadget')->retrieveMobileBottomGadgets();
    3131
    3232    $this->categories = sfConfig::get('openpne_member_category');
     
    8484      $this->passwordForm->bind($request->getParameter('password'));
    8585      if ($this->passwordForm->isValid()) {
    86         $memberConfig = MemberConfigPeer::retrieveByNameAndMemberId('mobile_uid', $this->getUser()->getMemberId());
     86        $memberConfig = Doctrine::getTable('MemberConfig')->retrieveByNameAndMemberId('mobile_uid', $this->getUser()->getMemberId());
    8787        if (!$memberConfig) {
    8888          $memberConfig = new MemberConfig();
     
    109109    $token = $request->getParameter('token');
    110110
    111     $memberConfig = MemberConfigPeer::retrieveByNameAndMemberId('register_mobile_token', $id);
     111    $memberConfig = Doctrine::getTable('MemberConfig')->retrieveByNameAndMemberId('register_mobile_token', $id);
    112112
    113113    $this->forward404Unless($memberConfig && $token === $memberConfig->getValue());
Note: See TracChangeset for help on using the changeset viewer.