<?php

/**
 * BaseProjectAdmin
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int           $projectId                 Type: integer(4), primary key
 * @property int           $empNumber                 Type: integer(4), primary key
 * @property Project       $Project                   
 * @property Employee      $Employee                  
 *  
 * @method int             getProjectid()             Type: integer(4), primary key
 * @method int             getEmpnumber()             Type: integer(4), primary key
 * @method Project         getProject()               
 * @method Employee        getEmployee()              
 *  
 * @method ProjectAdmin    setProjectid(int $val)     Type: integer(4), primary key
 * @method ProjectAdmin    setEmpnumber(int $val)     Type: integer(4), primary key
 * @method ProjectAdmin    setProject(Project $val)   
 * @method ProjectAdmin    setEmployee(Employee $val) 
 *  
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseProjectAdmin extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_project_admin');
        $this->hasColumn('project_id as projectId', 'integer', 4, array(
             'type' => 'integer',
             'primary' => true,
             'length' => 4,
             ));
        $this->hasColumn('emp_number as empNumber', 'integer', 4, array(
             'type' => 'integer',
             'primary' => true,
             'length' => 4,
             ));
    }

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

        $this->hasOne('Employee', array(
             'local' => 'emp_number',
             'foreign' => 'emp_number'));
    }
}