<?php

/**
 * BaseEmploymentStatus
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int                             $id                                    Type: integer, primary key
 * @property string                          $name                                  Type: string(60)
 * @property Doctrine_Collection|Employee[]  $employees                             
 *  
 * @method int                               getId()                                Type: integer, primary key
 * @method string                            getName()                              Type: string(60)
 * @method Doctrine_Collection|Employee[]    getEmployees()                         
 *  
 * @method EmploymentStatus                  setId(int $val)                        Type: integer, primary key
 * @method EmploymentStatus                  setName(string $val)                   Type: string(60)
 * @method EmploymentStatus                  setEmployees(Doctrine_Collection $val) 
 *  
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseEmploymentStatus extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_employment_status');
        $this->hasColumn('id', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             'autoincrement' => true,
             ));
        $this->hasColumn('name', 'string', 60, array(
             'type' => 'string',
             'length' => 60,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('Employee as employees', array(
             'local' => 'id',
             'foreign' => 'emp_status'));
    }
}