<?php

/**
 * BaseEmpChildren
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $emp_number
 * @property decimal $seqno
 * @property string $name
 * @property date $dob
 * @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 date        getDob()        Returns the current record's "dob" value
 * @method Employee    getEmployee()   Returns the current record's "Employee" value
 * @method EmpChildren setEmpNumber()  Sets the current record's "emp_number" value
 * @method EmpChildren setSeqno()      Sets the current record's "seqno" value
 * @method EmpChildren setName()       Sets the current record's "name" value
 * @method EmpChildren setDob()        Sets the current record's "dob" value
 * @method EmpChildren 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 BaseEmpChildren extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('hs_hr_emp_children');
        $this->hasColumn('emp_number', 'integer', 4, array(
             'type' => 'integer',
             'primary' => true,
             'length' => 4,
             ));
        $this->hasColumn('ec_seqno as seqno', 'decimal', 2, array(
             'type' => 'decimal',
             'primary' => true,
             'length' => 2,
             ));
        $this->hasColumn('ec_name as name', 'string', 100, array(
             'type' => 'string',
             'default' => '',
             'length' => 100,
             ));
        $this->hasColumn('ec_date_of_birth as dob', 'date', 25, array(
             'type' => 'date',
             'length' => 25,
             ));
    }

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