<?php

/**
 * BaseEmpEmergencyContact
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $emp_number
 * @property decimal $seqno
 * @property string $name
 * @property string $relationship
 * @property string $home_phone
 * @property string $mobile_phone
 * @property string $office_phone
 * @property Employee $Employee
 * 
 * @method integer             getEmpNumber()    Returns the current record's "emp_number" value
 * @method decimal             getSeqno()        Returns the current record's "seqno" value
 * @method string              getName()         Returns the current record's "name" value
 * @method string              getRelationship() Returns the current record's "relationship" value
 * @method string              getHomePhone()    Returns the current record's "home_phone" value
 * @method string              getMobilePhone()  Returns the current record's "mobile_phone" value
 * @method string              getOfficePhone()  Returns the current record's "office_phone" value
 * @method Employee            getEmployee()     Returns the current record's "Employee" value
 * @method EmpEmergencyContact setEmpNumber()    Sets the current record's "emp_number" value
 * @method EmpEmergencyContact setSeqno()        Sets the current record's "seqno" value
 * @method EmpEmergencyContact setName()         Sets the current record's "name" value
 * @method EmpEmergencyContact setRelationship() Sets the current record's "relationship" value
 * @method EmpEmergencyContact setHomePhone()    Sets the current record's "home_phone" value
 * @method EmpEmergencyContact setMobilePhone()  Sets the current record's "mobile_phone" value
 * @method EmpEmergencyContact setOfficePhone()  Sets the current record's "office_phone" value
 * @method EmpEmergencyContact setEmployee()     Sets the current record's "Employee" value
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseEmpEmergencyContact extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('hs_hr_emp_emergency_contacts');
        $this->hasColumn('emp_number', 'integer', 4, array(
             'type' => 'integer',
             'primary' => true,
             'length' => 4,
             ));
        $this->hasColumn('eec_seqno as seqno', 'decimal', 2, array(
             'type' => 'decimal',
             'primary' => true,
             'length' => 2,
             ));
        $this->hasColumn('eec_name as name', 'string', 100, array(
             'type' => 'string',
             'default' => '',
             'length' => 100,
             ));
        $this->hasColumn('eec_relationship as relationship', 'string', 100, array(
             'type' => 'string',
             'default' => '',
             'length' => 100,
             ));
        $this->hasColumn('eec_home_no as home_phone', 'string', 100, array(
             'type' => 'string',
             'default' => '',
             'length' => 100,
             ));
        $this->hasColumn('eec_mobile_no as mobile_phone', 'string', 100, array(
             'type' => 'string',
             'default' => '',
             'length' => 100,
             ));
        $this->hasColumn('eec_office_no as office_phone', 'string', 100, array(
             'type' => 'string',
             'default' => '',
             'length' => 100,
             ));
    }

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