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

/**
 * BaseREGIONALES
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $codreg
 * @property string $desreg
 * @property string $ciuced
 * @property string $departa
 * @property string $direccion
 * @property string $coddep
 * @property string $codmun
 * @property string $nitcaja
 * @property string $codcaj
 * @property string $razsoc
 * @property Doctrine_Collection $COMISIONADOS_CONTRATO
 * @property Doctrine_Collection $COMISIONADOS_PLANTA
 * 
 * @method string              getCodreg()                Returns the current record's "codreg" value
 * @method string              getDesreg()                Returns the current record's "desreg" value
 * @method string              getCiuced()                Returns the current record's "ciuced" value
 * @method string              getDeparta()               Returns the current record's "departa" value
 * @method string              getDireccion()             Returns the current record's "direccion" value
 * @method string              getCoddep()                Returns the current record's "coddep" value
 * @method string              getCodmun()                Returns the current record's "codmun" value
 * @method string              getNitcaja()               Returns the current record's "nitcaja" value
 * @method string              getCodcaj()                Returns the current record's "codcaj" value
 * @method string              getRazsoc()                Returns the current record's "razsoc" value
 * @method Doctrine_Collection getCOMISIONADOSCONTRATO()  Returns the current record's "COMISIONADOS_CONTRATO" collection
 * @method Doctrine_Collection getCOMISIONADOSPLANTA()    Returns the current record's "COMISIONADOS_PLANTA" collection
 * @method REGIONALES          setCodreg()                Sets the current record's "codreg" value
 * @method REGIONALES          setDesreg()                Sets the current record's "desreg" value
 * @method REGIONALES          setCiuced()                Sets the current record's "ciuced" value
 * @method REGIONALES          setDeparta()               Sets the current record's "departa" value
 * @method REGIONALES          setDireccion()             Sets the current record's "direccion" value
 * @method REGIONALES          setCoddep()                Sets the current record's "coddep" value
 * @method REGIONALES          setCodmun()                Sets the current record's "codmun" value
 * @method REGIONALES          setNitcaja()               Sets the current record's "nitcaja" value
 * @method REGIONALES          setCodcaj()                Sets the current record's "codcaj" value
 * @method REGIONALES          setRazsoc()                Sets the current record's "razsoc" value
 * @method REGIONALES          setCOMISIONADOSCONTRATO()  Sets the current record's "COMISIONADOS_CONTRATO" collection
 * @method REGIONALES          setCOMISIONADOSPLANTA()    Sets the current record's "COMISIONADOS_PLANTA" collection
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseREGIONALES extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('REGIONALES');
        $this->hasColumn('codreg', 'string', 20, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('desreg', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('ciuced', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('departa', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('direccion', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('coddep', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('codmun', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('nitcaja', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('codcaj', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('razsoc', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('COMISIONADOS_CONTRATO', array(
             'local' => 'codreg',
             'foreign' => 'codreg'));

        $this->hasMany('COMISIONADOS_PLANTA', array(
             'local' => 'codreg',
             'foreign' => 'codreg'));
    }
}