<?php

/**
 * BaseReviewerGroup
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $name
 * @property integer $piority
 * @property Doctrine_Collection $rating
 * 
 * @method integer             getId()      Returns the current record's "id" value
 * @method string              getName()    Returns the current record's "name" value
 * @method integer             getPiority() Returns the current record's "piority" value
 * @method Doctrine_Collection getRating()  Returns the current record's "rating" collection
 * @method ReviewerGroup       setId()      Sets the current record's "id" value
 * @method ReviewerGroup       setName()    Sets the current record's "name" value
 * @method ReviewerGroup       setPiority() Sets the current record's "piority" value
 * @method ReviewerGroup       setRating()  Sets the current record's "rating" collection
 * 
 * @package    orangehrm
 * @subpackage model\performance\base
 * @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'));
    }
}