<?php

/**
 * BaseReviewerGroup
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int                             $id                                 Type: integer(6), primary key
 * @property string                          $name                               Type: string(20)
 * @property int                             $piority                            Type: integer(6)
 * @property Doctrine_Collection|Reviewer[]  $rating                             
 *  
 * @method int                               getId()                             Type: integer(6), primary key
 * @method string                            getName()                           Type: string(20)
 * @method int                               getPiority()                        Type: integer(6)
 * @method Doctrine_Collection|Reviewer[]    getRating()                         
 *  
 * @method ReviewerGroup                     setId(int $val)                     Type: integer(6), primary key
 * @method ReviewerGroup                     setName(string $val)                Type: string(20)
 * @method ReviewerGroup                     setPiority(int $val)                Type: integer(6)
 * @method ReviewerGroup                     setRating(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 BaseReviewerGroup extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_reviewer_group');
        $this->hasColumn('id', 'integer', 6, array(
             'type' => 'integer',
             'primary' => true,
             'autoincrement' => true,
             'length' => 6,
             ));
        $this->hasColumn('name as name', 'string', 20, array(
             'type' => 'string',
             'length' => 20,
             ));
        $this->hasColumn('piority', 'integer', 6, array(
             'type' => 'integer',
             'length' => 6,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('Reviewer as rating', array(
             'local' => 'id',
             'foreign' => 'reviewer_group_id'));
    }
}