<?php

/**
 * BaseDataGroupScreenPermission
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int                        $id                          Type: integer, primary key
 * @property int                        $data_group_id               Type: integer
 * @property int                        $screen_id                   Type: integer
 * @property int                        $permission                  Type: integer
 * @property DataGroup                  $DataGroup                   
 * @property Screen                     $Screen                      
 *  
 * @method int                          getId()                      Type: integer, primary key
 * @method int                          getDataGroupId()             Type: integer
 * @method int                          getScreenId()                Type: integer
 * @method int                          getPermission()              Type: integer
 * @method DataGroup                    getDataGroup()               
 * @method Screen                       getScreen()                  
 *  
 * @method DataGroupScreenPermission    setId(int $val)              Type: integer, primary key
 * @method DataGroupScreenPermission    setDataGroupId(int $val)     Type: integer
 * @method DataGroupScreenPermission    setScreenId(int $val)        Type: integer
 * @method DataGroupScreenPermission    setPermission(int $val)      Type: integer
 * @method DataGroupScreenPermission    setDataGroup(DataGroup $val) 
 * @method DataGroupScreenPermission    setScreen(Screen $val)       
 *  
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseDataGroupScreenPermission extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_data_group_screen');
        $this->hasColumn('id', 'integer', null, array(
             'type' => 'integer',
             'autoincrement' => true,
             'primary' => true,
             ));
        $this->hasColumn('data_group_id', 'integer', null, array(
             'type' => 'integer',
             ));
        $this->hasColumn('screen_id', 'integer', null, array(
             'type' => 'integer',
             ));
        $this->hasColumn('permission', 'integer', null, array(
             'type' => 'integer',
             ));
    }

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

        $this->hasOne('Screen', array(
             'local' => 'screen_id',
             'foreign' => 'id'));
    }
}