<?php

/**
 * BaseModuleDefaultPage
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $module_id
 * @property integer $user_role_id
 * @property string $action
 * @property string $enable_class
 * @property integer $priority
 * @property UserRole $UserRole
 * @property Module $Module
 * 
 * @method integer           getId()           Returns the current record's "id" value
 * @method integer           getModuleId()     Returns the current record's "module_id" value
 * @method integer           getUserRoleId()   Returns the current record's "user_role_id" value
 * @method string            getAction()       Returns the current record's "action" value
 * @method string            getEnableClass()  Returns the current record's "enable_class" value
 * @method integer           getPriority()     Returns the current record's "priority" value
 * @method UserRole          getUserRole()     Returns the current record's "UserRole" value
 * @method Module            getModule()       Returns the current record's "Module" value
 * @method ModuleDefaultPage setId()           Sets the current record's "id" value
 * @method ModuleDefaultPage setModuleId()     Sets the current record's "module_id" value
 * @method ModuleDefaultPage setUserRoleId()   Sets the current record's "user_role_id" value
 * @method ModuleDefaultPage setAction()       Sets the current record's "action" value
 * @method ModuleDefaultPage setEnableClass()  Sets the current record's "enable_class" value
 * @method ModuleDefaultPage setPriority()     Sets the current record's "priority" value
 * @method ModuleDefaultPage setUserRole()     Sets the current record's "UserRole" value
 * @method ModuleDefaultPage setModule()       Sets the current record's "Module" value
 * 
 * @package    orangehrm
 * @subpackage model\core\base
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseModuleDefaultPage extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_module_default_page');
        $this->hasColumn('id', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             'autoincrement' => true,
             ));
        $this->hasColumn('module_id', 'integer', null, array(
             'type' => 'integer',
             'notnull' => true,
             ));
        $this->hasColumn('user_role_id', 'integer', null, array(
             'type' => 'integer',
             'notnull' => true,
             ));
        $this->hasColumn('action', 'string', 255, array(
             'type' => 'string',
             'notnull' => false,
             'length' => 255,
             ));
        $this->hasColumn('enable_class', 'string', 100, array(
             'type' => 'string',
             'notnull' => false,
             'length' => 100,
             ));
        $this->hasColumn('priority', 'integer', 4, array(
             'type' => 'integer',
             'default' => '0',
             'notnull' => true,
             'length' => 4,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('UserRole', array(
             'local' => 'user_role_id',
             'foreign' => 'id'));

        $this->hasOne('Module', array(
             'local' => 'module_id',
             'foreign' => 'id'));
    }
}