<?php

/**
 * BaseJobInterview
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int                                            $id                                                  Type: integer(13), primary key
 * @property int                                            $candidateVacancyId                                  Type: integer(13)
 * @property int                                            $candidateId                                         Type: integer(13)
 * @property string                                         $interviewName                                       Type: string(100)
 * @property string                                         $interviewDate                                       Type: date(25), Date in ISO-8601 format (YYYY-MM-DD)
 * @property string                                         $interviewTime                                       Type: string(30)
 * @property string                                         $note                                                Type: string(2147483647)
 * @property JobCandidateVacancy                            $JobCandidateVacancy                                 
 * @property Doctrine_Collection|JobInterviewInterviewer[]  $JobInterviewInterviewer                             
 * @property CandidateHistory                               $CandidateHistory                                    
 * @property Doctrine_Collection|JobInterviewAttachment[]   $JobInterviewAttachment                              
 * @property JobCandidate                                   $JobCandidate                                        
 *  
 * @method int                                              getId()                                              Type: integer(13), primary key
 * @method int                                              getCandidatevacancyid()                              Type: integer(13)
 * @method int                                              getCandidateid()                                     Type: integer(13)
 * @method string                                           getInterviewname()                                   Type: string(100)
 * @method string                                           getInterviewdate()                                   Type: date(25), Date in ISO-8601 format (YYYY-MM-DD)
 * @method string                                           getInterviewtime()                                   Type: string(30)
 * @method string                                           getNote()                                            Type: string(2147483647)
 * @method JobCandidateVacancy                              getJobCandidateVacancy()                             
 * @method Doctrine_Collection|JobInterviewInterviewer[]    getJobInterviewInterviewer()                         
 * @method CandidateHistory                                 getCandidateHistory()                                
 * @method Doctrine_Collection|JobInterviewAttachment[]     getJobInterviewAttachment()                          
 * @method JobCandidate                                     getJobCandidate()                                    
 *  
 * @method JobInterview                                     setId(int $val)                                      Type: integer(13), primary key
 * @method JobInterview                                     setCandidatevacancyid(int $val)                      Type: integer(13)
 * @method JobInterview                                     setCandidateid(int $val)                             Type: integer(13)
 * @method JobInterview                                     setInterviewname(string $val)                        Type: string(100)
 * @method JobInterview                                     setInterviewdate(string $val)                        Type: date(25), Date in ISO-8601 format (YYYY-MM-DD)
 * @method JobInterview                                     setInterviewtime(string $val)                        Type: string(30)
 * @method JobInterview                                     setNote(string $val)                                 Type: string(2147483647)
 * @method JobInterview                                     setJobCandidateVacancy(JobCandidateVacancy $val)     
 * @method JobInterview                                     setJobInterviewInterviewer(Doctrine_Collection $val) 
 * @method JobInterview                                     setCandidateHistory(CandidateHistory $val)           
 * @method JobInterview                                     setJobInterviewAttachment(Doctrine_Collection $val)  
 * @method JobInterview                                     setJobCandidate(JobCandidate $val)                   
 *  
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseJobInterview extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_job_interview');
        $this->hasColumn('id', 'integer', 13, array(
             'type' => 'integer',
             'primary' => true,
             'autoincrement' => true,
             'length' => 13,
             ));
        $this->hasColumn('candidate_vacancy_id as candidateVacancyId', 'integer', 13, array(
             'type' => 'integer',
             'length' => 13,
             ));
        $this->hasColumn('candidate_id as candidateId', 'integer', 13, array(
             'type' => 'integer',
             'length' => 13,
             ));
        $this->hasColumn('interview_name as interviewName', 'string', 100, array(
             'type' => 'string',
             'length' => 100,
             ));
        $this->hasColumn('interview_date as interviewDate', 'date', 25, array(
             'type' => 'date',
             'length' => 25,
             ));
        $this->hasColumn('interview_time as interviewTime', 'string', 30, array(
             'type' => 'string',
             'length' => 30,
             ));
        $this->hasColumn('note', 'string', 2147483647, array(
             'type' => 'string',
             'length' => 2147483647,
             ));
    }

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

        $this->hasMany('JobInterviewInterviewer', array(
             'local' => 'id',
             'foreign' => 'interview_id'));

        $this->hasOne('CandidateHistory', array(
             'local' => 'id',
             'foreign' => 'interviewId'));

        $this->hasMany('JobInterviewAttachment', array(
             'local' => 'id',
             'foreign' => 'interviewId'));

        $this->hasOne('JobCandidate', array(
             'local' => 'candidateId',
             'foreign' => 'id'));
    }
}