<?php

/**
 * BaseEmployeeUsergroup
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $userg_id
 * @property string $rep_code
 * @property UserGroup $UserGroup
 * 
 * @method string            getUsergId()   Returns the current record's "userg_id" value
 * @method string            getRepCode()   Returns the current record's "rep_code" value
 * @method UserGroup         getUserGroup() Returns the current record's "UserGroup" value
 * @method EmployeeUsergroup setUsergId()   Sets the current record's "userg_id" value
 * @method EmployeeUsergroup setRepCode()   Sets the current record's "rep_code" value
 * @method EmployeeUsergroup setUserGroup() Sets the current record's "UserGroup" value
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseEmployeeUsergroup extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('hs_hr_emprep_usergroup');
        $this->hasColumn('userg_id', 'string', 13, array(
             'type' => 'string',
             'primary' => true,
             'length' => 13,
             ));
        $this->hasColumn('rep_code', 'string', 13, array(
             'type' => 'string',
             'primary' => true,
             'length' => 13,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('UserGroup', array(
             'local' => 'userg_id',
             'foreign' => 'userg_id'));
    }
}