<?php

/**
 * BaseLicenses
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $licenses_code
 * @property string $licenses_desc
 * @property Doctrine_Collection $EmployeeLicense
 * 
 * @method string              getLicensesCode()    Returns the current record's "licenses_code" value
 * @method string              getLicensesDesc()    Returns the current record's "licenses_desc" value
 * @method Doctrine_Collection getEmployeeLicense() Returns the current record's "EmployeeLicense" collection
 * @method Licenses            setLicensesCode()    Sets the current record's "licenses_code" value
 * @method Licenses            setLicensesDesc()    Sets the current record's "licenses_desc" value
 * @method Licenses            setEmployeeLicense() Sets the current record's "EmployeeLicense" collection
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseLicenses extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('hs_hr_licenses');
        $this->hasColumn('licenses_code', 'string', 13, array(
             'type' => 'string',
             'primary' => true,
             'length' => 13,
             ));
        $this->hasColumn('licenses_desc', 'string', 50, array(
             'type' => 'string',
             'length' => 50,
             ));
    }

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