<?php
// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('SF_GUARD_GROUP', 'doctrine');

/**
 * BaseSF_GUARD_GROUP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $name
 * @property string $description
 * @property timestamp $created_at
 * @property timestamp $updated_at
 * @property Doctrine_Collection $SF_GUARD_USER_GROUP
 * @property Doctrine_Collection $SF_GUARD_GROUP_PERMISSION
 * 
 * @method integer             getId()                        Returns the current record's "id" value
 * @method string              getName()                      Returns the current record's "name" value
 * @method string              getDescription()               Returns the current record's "description" value
 * @method timestamp           getCreatedAt()                 Returns the current record's "created_at" value
 * @method timestamp           getUpdatedAt()                 Returns the current record's "updated_at" value
 * @method Doctrine_Collection getSFGUARDUSERGROUP()          Returns the current record's "SF_GUARD_USER_GROUP" collection
 * @method Doctrine_Collection getSFGUARDGROUPPERMISSION()    Returns the current record's "SF_GUARD_GROUP_PERMISSION" collection
 * @method SF_GUARD_GROUP      setId()                        Sets the current record's "id" value
 * @method SF_GUARD_GROUP      setName()                      Sets the current record's "name" value
 * @method SF_GUARD_GROUP      setDescription()               Sets the current record's "description" value
 * @method SF_GUARD_GROUP      setCreatedAt()                 Sets the current record's "created_at" value
 * @method SF_GUARD_GROUP      setUpdatedAt()                 Sets the current record's "updated_at" value
 * @method SF_GUARD_GROUP      setSFGUARDUSERGROUP()          Sets the current record's "SF_GUARD_USER_GROUP" collection
 * @method SF_GUARD_GROUP      setSFGUARDGROUPPERMISSION()    Sets the current record's "SF_GUARD_GROUP_PERMISSION" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseSF_GUARD_GROUP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('SF_GUARD_GROUP');
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('name', 'string', 255, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 255,
             ));
        $this->hasColumn('description', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('created_at', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('updated_at', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('SF_GUARD_USER_GROUP', array(
             'local' => 'id',
             'foreign' => 'group_id'));

        $this->hasMany('SF_GUARD_GROUP_PERMISSION', array(
             'local' => 'id',
             'foreign' => 'group_id'));
    }
}