<?php

/**
 * BasePerformanceTrack
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $tracker_name
 * @property integer $emp_number
 * @property timestamp $added_date
 * @property timestamp $modified_date
 * @property integer $status
 * @property Employee $Employee
 * @property Doctrine_Collection $PerformanceTrackerLog
 * @property Doctrine_Collection $PerformanceTrackerReviewer
 * 
 * @method integer             getId()                         Returns the current record's "id" value
 * @method string              getTrackerName()                Returns the current record's "tracker_name" value
 * @method integer             getEmpNumber()                  Returns the current record's "emp_number" value
 * @method timestamp           getAddedDate()                  Returns the current record's "added_date" value
 * @method timestamp           getModifiedDate()               Returns the current record's "modified_date" value
 * @method integer             getStatus()                     Returns the current record's "status" value
 * @method Employee            getEmployee()                   Returns the current record's "Employee" value
 * @method Doctrine_Collection getPerformanceTrackerLog()      Returns the current record's "PerformanceTrackerLog" collection
 * @method Doctrine_Collection getPerformanceTrackerReviewer() Returns the current record's "PerformanceTrackerReviewer" collection
 * @method PerformanceTrack    setId()                         Sets the current record's "id" value
 * @method PerformanceTrack    setTrackerName()                Sets the current record's "tracker_name" value
 * @method PerformanceTrack    setEmpNumber()                  Sets the current record's "emp_number" value
 * @method PerformanceTrack    setAddedDate()                  Sets the current record's "added_date" value
 * @method PerformanceTrack    setModifiedDate()               Sets the current record's "modified_date" value
 * @method PerformanceTrack    setStatus()                     Sets the current record's "status" value
 * @method PerformanceTrack    setEmployee()                   Sets the current record's "Employee" value
 * @method PerformanceTrack    setPerformanceTrackerLog()      Sets the current record's "PerformanceTrackerLog" collection
 * @method PerformanceTrack    setPerformanceTrackerReviewer() Sets the current record's "PerformanceTrackerReviewer" collection
 * 
 * @package    orangehrm
 * @subpackage model\performancetracker\base
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BasePerformanceTrack extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_performance_track');
        $this->hasColumn('id', 'integer', 4, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'autoincrement' => true,
             'length' => 4,
             ));
        $this->hasColumn('tracker_name', 'string', 200, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 200,
             ));
        $this->hasColumn('emp_number', 'integer', 4, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => true,
             'autoincrement' => false,
             'length' => 4,
             ));
        $this->hasColumn('added_date', 'timestamp', 25, array(
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => false,
             'autoincrement' => false,
             'length' => 25,
             ));
        $this->hasColumn('modified_date', 'timestamp', 25, array(
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => false,
             'autoincrement' => false,
             'length' => 25,
             ));
        $this->hasColumn('status', 'integer', 4, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => false,
             'autoincrement' => false,
             'length' => 4,
             ));
    }

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

        $this->hasMany('PerformanceTrackerLog', array(
             'local' => 'id',
             'foreign' => 'performance_track_id'));

        $this->hasMany('PerformanceTrackerReviewer', array(
             'local' => 'id',
             'foreign' => 'performance_track_id'));
    }
}