<?php

/**
 * BaseJobVacancyAttachment
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $vacancyId
 * @property string $fileName
 * @property string $fileType
 * @property integer $fileSize
 * @property blob $fileContent
 * @property integer $attachmentType
 * @property  $comment
 * @property JobVacancy $JobVacancy
 * 
 * @method integer              getId()             Returns the current record's "id" value
 * @method integer              getVacancyId()      Returns the current record's "vacancyId" value
 * @method string               getFileName()       Returns the current record's "fileName" value
 * @method string               getFileType()       Returns the current record's "fileType" value
 * @method integer              getFileSize()       Returns the current record's "fileSize" value
 * @method blob                 getFileContent()    Returns the current record's "fileContent" value
 * @method integer              getAttachmentType() Returns the current record's "attachmentType" value
 * @method JobVacancy           getJobVacancy()     Returns the current record's "JobVacancy" value
 * @method JobVacancyAttachment setId()             Sets the current record's "id" value
 * @method JobVacancyAttachment setVacancyId()      Sets the current record's "vacancyId" value
 * @method JobVacancyAttachment setFileName()       Sets the current record's "fileName" value
 * @method JobVacancyAttachment setFileType()       Sets the current record's "fileType" value
 * @method JobVacancyAttachment setFileSize()       Sets the current record's "fileSize" value
 * @method JobVacancyAttachment setFileContent()    Sets the current record's "fileContent" value
 * @method JobVacancyAttachment setAttachmentType() Sets the current record's "attachmentType" value
 * @method JobVacancyAttachment setJobVacancy()     Sets the current record's "JobVacancy" value
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseJobVacancyAttachment extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_job_vacancy_attachment');
        $this->hasColumn('id', 'integer', 13, array(
             'type' => 'integer',
             'primary' => true,
             'length' => 13,
             ));
        $this->hasColumn('vacancy_id as vacancyId', 'integer', 13, array(
             'type' => 'integer',
             'length' => 13,
             ));
        $this->hasColumn('file_name as fileName', 'string', 255, array(
             'type' => 'string',
             'length' => 255,
             ));
        $this->hasColumn('file_type as fileType', 'string', 255, array(
             'type' => 'string',
             'length' => 255,
             ));
        $this->hasColumn('file_size as fileSize', 'integer', 30, array(
             'type' => 'integer',
             'length' => 30,
             ));
        $this->hasColumn('file_content as fileContent', 'blob', 2147483647, array(
             'type' => 'blob',
             'length' => 2147483647,
             ));
        $this->hasColumn('attachment_type as attachmentType', 'integer', 4, array(
             'type' => 'integer',
             'length' => 4,
             ));
        $this->hasColumn('comment', '', null);
    }

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