<?php

/**
 * BaseReportingMethod
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $reportingMethodId
 * @property string $reportingMethodName
 * @property ReportTo $ReportTo
 * 
 * @method integer         getReportingMethodId()   Returns the current record's "reportingMethodId" value
 * @method string          getReportingMethodName() Returns the current record's "reportingMethodName" value
 * @method ReportTo        getReportTo()            Returns the current record's "ReportTo" value
 * @method ReportingMethod setReportingMethodId()   Sets the current record's "reportingMethodId" value
 * @method ReportingMethod setReportingMethodName() Sets the current record's "reportingMethodName" value
 * @method ReportingMethod setReportTo()            Sets the current record's "ReportTo" value
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseReportingMethod extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_emp_reporting_method');
        $this->hasColumn('reporting_method_id as reportingMethodId', 'integer', 4, array(
             'type' => 'integer',
             'primary' => true,
             'length' => 4,
             ));
        $this->hasColumn('reporting_method_name as reportingMethodName', 'string', 100, array(
             'type' => 'string',
             'primary' => true,
             'length' => 100,
             ));
    }

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