<?php

/**
 * BaseJobInterviewInterviewer
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $interviewId
 * @property integer $interviewerId
 * @property JobInterview $JobInterview
 * @property Employee $Employee
 * 
 * @method integer                 getInterviewId()   Returns the current record's "interviewId" value
 * @method integer                 getInterviewerId() Returns the current record's "interviewerId" value
 * @method JobInterview            getJobInterview()  Returns the current record's "JobInterview" value
 * @method Employee                getEmployee()      Returns the current record's "Employee" value
 * @method JobInterviewInterviewer setInterviewId()   Sets the current record's "interviewId" value
 * @method JobInterviewInterviewer setInterviewerId() Sets the current record's "interviewerId" value
 * @method JobInterviewInterviewer setJobInterview()  Sets the current record's "JobInterview" value
 * @method JobInterviewInterviewer setEmployee()      Sets the current record's "Employee" value
 * 
 * @package    orangehrm
 * @subpackage model\recruitment\base
 * @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'));
    }
}