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

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/BaseCommunityCategory.class.php

    r11208 r11219  
    66abstract class BaseCommunityCategory extends sfDoctrineRecord
    77{
    8   public function setTableDefinition()
    9   {
    10     $this->setTableName('community_category');
    11     $this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'primary' => true, 'autoincrement' => true, 'length' => '4'));
    12     $this->hasColumn('lft_key', 'integer', 4, array('type' => 'integer', 'default' => '0', 'length' => '4'));
    13     $this->hasColumn('rht_key', 'integer', 4, array('type' => 'integer', 'default' => '0', 'length' => '4'));
    14     $this->hasColumn('name', 'string', 64, array('type' => 'string', 'default' => '', 'notnull' => true, 'length' => '64'));
    15     $this->hasColumn('is_allow_member_community', 'integer', 1, array('type' => 'integer', 'default' => '1', 'notnull' => true, 'length' => '1'));
    16     $this->hasColumn('tree_key', 'integer', 4, array('type' => 'integer', 'length' => '4'));
    17     $this->hasColumn('sort_order', 'integer', 4, array('type' => 'integer', 'length' => '4'));
    18   }
     8    public function setTableDefinition()
     9    {
     10        $this->setTableName('community_category');
     11        $this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'primary' => true, 'autoincrement' => true, 'length' => '4'));
     12        $this->hasColumn('lft_key', 'integer', 4, array('type' => 'integer', 'default' => '0', 'length' => '4'));
     13        $this->hasColumn('rht_key', 'integer', 4, array('type' => 'integer', 'default' => '0', 'length' => '4'));
     14        $this->hasColumn('name', 'string', 64, array('type' => 'string', 'default' => '', 'notnull' => true, 'length' => '64'));
     15        $this->hasColumn('is_allow_member_community', 'integer', 1, array('type' => 'integer', 'default' => '1', 'notnull' => true, 'length' => '1'));
     16        $this->hasColumn('tree_key', 'integer', 4, array('type' => 'integer', 'length' => '4'));
     17        $this->hasColumn('sort_order', 'integer', 4, array('type' => 'integer', 'length' => '4'));
    1918
    20   public function setUp()
    21   {
    22     $this->hasMany('Community', array('local' => 'id',
    23                                       'foreign' => 'community_category_id'));
    24   }
     19        $this->option('charset', 'utf8');
     20    }
     21
     22    public function setUp()
     23    {
     24        $this->hasMany('Community', array('local' => 'id',
     25                                          'foreign' => 'community_category_id'));
     26    }
    2527}
Note: See TracChangeset for help on using the changeset viewer.