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

/**
 * BaseCBR_DATOS_TITULAR
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_datos_titular
 * @property integer $id_actualiza_titulo
 * @property integer $telefono
 * @property string $direccion
 * @property integer $id_depto
 * @property integer $codmun
 * @property CBR_ACTUALIZA_TITULO $CBR_ACTUALIZA_TITULO
 * @property DEPARTAMENTO $DEPARTAMENTO
 * @property MUNICIPIOS $MUNICIPIOS
 * 
 * @method integer              getIdDatosTitular()       Returns the current record's "id_datos_titular" value
 * @method integer              getIdActualizaTitulo()    Returns the current record's "id_actualiza_titulo" value
 * @method integer              getTelefono()             Returns the current record's "telefono" value
 * @method string               getDireccion()            Returns the current record's "direccion" value
 * @method integer              getIdDepto()              Returns the current record's "id_depto" value
 * @method integer              getCodmun()               Returns the current record's "codmun" value
 * @method CBR_ACTUALIZA_TITULO getCBRACTUALIZATITULO()   Returns the current record's "CBR_ACTUALIZA_TITULO" value
 * @method DEPARTAMENTO         getDEPARTAMENTO()         Returns the current record's "DEPARTAMENTO" value
 * @method MUNICIPIOS           getMUNICIPIOS()           Returns the current record's "MUNICIPIOS" value
 * @method CBR_DATOS_TITULAR    setIdDatosTitular()       Sets the current record's "id_datos_titular" value
 * @method CBR_DATOS_TITULAR    setIdActualizaTitulo()    Sets the current record's "id_actualiza_titulo" value
 * @method CBR_DATOS_TITULAR    setTelefono()             Sets the current record's "telefono" value
 * @method CBR_DATOS_TITULAR    setDireccion()            Sets the current record's "direccion" value
 * @method CBR_DATOS_TITULAR    setIdDepto()              Sets the current record's "id_depto" value
 * @method CBR_DATOS_TITULAR    setCodmun()               Sets the current record's "codmun" value
 * @method CBR_DATOS_TITULAR    setCBRACTUALIZATITULO()   Sets the current record's "CBR_ACTUALIZA_TITULO" value
 * @method CBR_DATOS_TITULAR    setDEPARTAMENTO()         Sets the current record's "DEPARTAMENTO" value
 * @method CBR_DATOS_TITULAR    setMUNICIPIOS()           Sets the current record's "MUNICIPIOS" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCBR_DATOS_TITULAR extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_DATOS_TITULAR');
        $this->hasColumn('id_datos_titular', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_actualiza_titulo', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('telefono', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('direccion', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('id_depto', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('codmun', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('DEPARTAMENTO', array(
             'local' => 'id_depto',
             'foreign' => 'id_depto'));

        $this->hasOne('MUNICIPIOS', array(
             'local' => 'codmun',
             'foreign' => 'codmun'));
    }
}