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

Ignore:
Timestamp:
Apr 5, 2009, 6:28:34 AM (13 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/lib/model/doctrine/base/BaseCommunityConfig.class.php

    r11208 r11219  
    66abstract class BaseCommunityConfig extends sfDoctrineRecord
    77{
    8   public function setTableDefinition()
    9   {
    10     $this->setTableName('community_config');
    11     $this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'primary' => true, 'autoincrement' => true, 'length' => '4'));
    12     $this->hasColumn('community_id', 'integer', 4, array('type' => 'integer', 'notnull' => true, 'length' => '4'));
    13     $this->hasColumn('name', 'string', 64, array('type' => 'string', 'default' => '', 'notnull' => true, 'length' => '64'));
    14     $this->hasColumn('value', 'string', 2147483647, array('type' => 'string', 'length' => '2147483647'));
    15   }
     8    public function setTableDefinition()
     9    {
     10        $this->setTableName('community_config');
     11        $this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'primary' => true, 'autoincrement' => true, 'length' => '4'));
     12        $this->hasColumn('community_id', 'integer', 4, array('type' => 'integer', 'notnull' => true, 'length' => '4'));
     13        $this->hasColumn('name', 'string', 64, array('type' => 'string', 'default' => '', 'notnull' => true, 'length' => '64'));
     14        $this->hasColumn('value', 'string', 2147483647, array('type' => 'string', 'length' => '2147483647'));
    1615
    17   public function setUp()
    18   {
    19     $this->hasOne('Community', array('local' => 'community_id',
    20                                      'foreign' => 'id'));
    21   }
     16        $this->option('charset', 'utf8');
     17    }
     18
     19    public function setUp()
     20    {
     21        $this->hasOne('Community', array('local' => 'community_id',
     22                                         'foreign' => 'id'));
     23    }
    2224}
Note: See TracChangeset for help on using the changeset viewer.