<?php

/**
 * BaseModule
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $mod_id
 * @property string $name
 * @property string $owner
 * @property string $owner_email
 * @property string $version
 * @property string $description
 * @property Doctrine_Collection $ModuleRights
 * 
 * @method string              getModId()        Returns the current record's "mod_id" value
 * @method string              getName()         Returns the current record's "name" value
 * @method string              getOwner()        Returns the current record's "owner" value
 * @method string              getOwnerEmail()   Returns the current record's "owner_email" value
 * @method string              getVersion()      Returns the current record's "version" value
 * @method string              getDescription()  Returns the current record's "description" value
 * @method Doctrine_Collection getModuleRights() Returns the current record's "ModuleRights" collection
 * @method Module              setModId()        Sets the current record's "mod_id" value
 * @method Module              setName()         Sets the current record's "name" value
 * @method Module              setOwner()        Sets the current record's "owner" value
 * @method Module              setOwnerEmail()   Sets the current record's "owner_email" value
 * @method Module              setVersion()      Sets the current record's "version" value
 * @method Module              setDescription()  Sets the current record's "description" value
 * @method Module              setModuleRights() Sets the current record's "ModuleRights" collection
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseModule extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('hs_hr_module');
        $this->hasColumn('mod_id', 'string', 36, array(
             'type' => 'string',
             'primary' => true,
             'length' => 36,
             ));
        $this->hasColumn('name', 'string', 45, array(
             'type' => 'string',
             'length' => 45,
             ));
        $this->hasColumn('owner', 'string', 45, array(
             'type' => 'string',
             'length' => 45,
             ));
        $this->hasColumn('owner_email', 'string', 100, array(
             'type' => 'string',
             'length' => 100,
             ));
        $this->hasColumn('version', 'string', 36, array(
             'type' => 'string',
             'length' => 36,
             ));
        $this->hasColumn('description', 'string', 2147483647, array(
             'type' => 'string',
             'length' => 2147483647,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('ModuleRights', array(
             'local' => 'mod_id',
             'foreign' => 'mod_id'));
    }
}