<?php

/**
 * BaseJobInterviewInterviewer
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int                      $interviewId                       Type: integer(13), primary key
 * @property int                      $interviewerId                     Type: integer(13), primary key
 * @property JobInterview             $JobInterview                      
 * @property Employee                 $Employee                          
 *  
 * @method int                        getInterviewid()                   Type: integer(13), primary key
 * @method int                        getInterviewerid()                 Type: integer(13), primary key
 * @method JobInterview               getJobInterview()                  
 * @method Employee                   getEmployee()                      
 *  
 * @method JobInterviewInterviewer    setInterviewid(int $val)           Type: integer(13), primary key
 * @method JobInterviewInterviewer    setInterviewerid(int $val)         Type: integer(13), primary key
 * @method JobInterviewInterviewer    setJobInterview(JobInterview $val) 
 * @method JobInterviewInterviewer    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 BaseJobInterviewInterviewer extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_job_interview_interviewer');
        $this->hasColumn('interview_id as interviewId', 'integer', 13, array(
             'type' => 'integer',
             'primary' => true,
             'length' => 13,
             ));
        $this->hasColumn('interviewer_id as interviewerId', 'integer', 13, array(
             'type' => 'integer',
             'primary' => true,
             'length' => 13,
             ));
    }

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

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