<?php

/**
 * BasePerformanceTrackerReviewer
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int                         $id                                        Type: integer(4), primary key
 * @property int                         $performance_track_id                      Type: integer(4)
 * @property int                         $reviewer_id                               Type: integer(4)
 * @property string                      $added_date                                Type: timestamp(25), Timestamp in ISO-8601 format (YYYY-MM-DD HH:MI:SS)
 * @property int                         $status                                    Type: integer(4)
 * @property PerformanceTrack            $PerformanceTrack                          
 * @property Employee                    $Employee                                  
 *  
 * @method int                           getId()                                    Type: integer(4), primary key
 * @method int                           getPerformanceTrackId()                    Type: integer(4)
 * @method int                           getReviewerId()                            Type: integer(4)
 * @method string                        getAddedDate()                             Type: timestamp(25), Timestamp in ISO-8601 format (YYYY-MM-DD HH:MI:SS)
 * @method int                           getStatus()                                Type: integer(4)
 * @method PerformanceTrack              getPerformanceTrack()                      
 * @method Employee                      getEmployee()                              
 *  
 * @method PerformanceTrackerReviewer    setId(int $val)                            Type: integer(4), primary key
 * @method PerformanceTrackerReviewer    setPerformanceTrackId(int $val)            Type: integer(4)
 * @method PerformanceTrackerReviewer    setReviewerId(int $val)                    Type: integer(4)
 * @method PerformanceTrackerReviewer    setAddedDate(string $val)                  Type: timestamp(25), Timestamp in ISO-8601 format (YYYY-MM-DD HH:MI:SS)
 * @method PerformanceTrackerReviewer    setStatus(int $val)                        Type: integer(4)
 * @method PerformanceTrackerReviewer    setPerformanceTrack(PerformanceTrack $val) 
 * @method PerformanceTrackerReviewer    setEmployee(Employee $val)                 
 *  
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BasePerformanceTrackerReviewer extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_performance_tracker_reviewer');
        $this->hasColumn('id', 'integer', 4, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'autoincrement' => true,
             'length' => 4,
             ));
        $this->hasColumn('performance_track_id', 'integer', 4, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => true,
             'autoincrement' => false,
             'length' => 4,
             ));
        $this->hasColumn('reviewer_id', '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('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('PerformanceTrack', array(
             'local' => 'performance_track_id',
             'foreign' => 'id'));

        $this->hasOne('Employee', array(
             'local' => 'reviewer_id',
             'foreign' => 'emp_number'));
    }
}