<?php
// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('REGIONES', 'doctrine');

/**
 * BaseREGIONES
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_region
 * @property string $region
 * @property Doctrine_Collection $RH_EN_REGISTRO_ENCUESTA
 * 
 * @method integer             getIdRegion()                Returns the current record's "id_region" value
 * @method string              getRegion()                  Returns the current record's "region" value
 * @method Doctrine_Collection getRHENREGISTROENCUESTA()    Returns the current record's "RH_EN_REGISTRO_ENCUESTA" collection
 * @method REGIONES            setIdRegion()                Sets the current record's "id_region" value
 * @method REGIONES            setRegion()                  Sets the current record's "region" value
 * @method REGIONES            setRHENREGISTROENCUESTA()    Sets the current record's "RH_EN_REGISTRO_ENCUESTA" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseREGIONES extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('REGIONES');
        $this->hasColumn('id_region', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('region', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('RH_EN_REGISTRO_ENCUESTA', array(
             'local' => 'id_region',
             'foreign' => 'region'));
    }
}