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

/**
 * BaseCNI_RUTA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_ruta
 * @property integer $id_cia
 * @property integer $id_interfaz
 * @property string $nombre
 * @property string $condicion
 * @property string $campo_valor
 * @property integer $id_clase_cuenta
 * @property integer $id_grupo_cuenta
 * @property integer $id_cuenta_mayor
 * @property integer $id_catalogo
 * @property integer $id_auxiliar
 * @property string $naturaleza
 * @property integer $estado
 * @property integer $id_mae_ter
 * @property CNI_INTERFAZ $CNI_INTERFAZ
 * @property CNI_INTERFAZ $CNI_INTERFAZ_2
 * @property CNI_INTERFAZ $CNI_INTERFAZ_3
 * @property CNI_INTERFAZ $CNI_INTERFAZ_4
 * @property CN_AUXILIAR $CN_AUXILIAR
 * @property CN_AUXILIAR $CN_AUXILIAR_6
 * @property CN_AUXILIAR $CN_AUXILIAR_7
 * @property CN_AUXILIAR $CN_AUXILIAR_8
 * @property CN_MAE_TER $CN_MAE_TER
 * @property CN_MAE_TER $CN_MAE_TER_10
 * @property CN_MAE_TER $CN_MAE_TER_11
 * @property CN_MAE_TER $CN_MAE_TER_12
 * 
 * @method integer      getIdRuta()          Returns the current record's "id_ruta" value
 * @method integer      getIdCia()           Returns the current record's "id_cia" value
 * @method integer      getIdInterfaz()      Returns the current record's "id_interfaz" value
 * @method string       getNombre()          Returns the current record's "nombre" value
 * @method string       getCondicion()       Returns the current record's "condicion" value
 * @method string       getCampoValor()      Returns the current record's "campo_valor" value
 * @method integer      getIdClaseCuenta()   Returns the current record's "id_clase_cuenta" value
 * @method integer      getIdGrupoCuenta()   Returns the current record's "id_grupo_cuenta" value
 * @method integer      getIdCuentaMayor()   Returns the current record's "id_cuenta_mayor" value
 * @method integer      getIdCatalogo()      Returns the current record's "id_catalogo" value
 * @method integer      getIdAuxiliar()      Returns the current record's "id_auxiliar" value
 * @method string       getNaturaleza()      Returns the current record's "naturaleza" value
 * @method integer      getEstado()          Returns the current record's "estado" value
 * @method integer      getIdMaeTer()        Returns the current record's "id_mae_ter" value
 * @method CNI_INTERFAZ getCNIINTERFAZ()     Returns the current record's "CNI_INTERFAZ" value
 * @method CNI_INTERFAZ getCNIINTERFAZ2()    Returns the current record's "CNI_INTERFAZ_2" value
 * @method CNI_INTERFAZ getCNIINTERFAZ3()    Returns the current record's "CNI_INTERFAZ_3" value
 * @method CNI_INTERFAZ getCNIINTERFAZ4()    Returns the current record's "CNI_INTERFAZ_4" value
 * @method CN_AUXILIAR  getCNAUXILIAR()      Returns the current record's "CN_AUXILIAR" value
 * @method CN_AUXILIAR  getCNAUXILIAR6()     Returns the current record's "CN_AUXILIAR_6" value
 * @method CN_AUXILIAR  getCNAUXILIAR7()     Returns the current record's "CN_AUXILIAR_7" value
 * @method CN_AUXILIAR  getCNAUXILIAR8()     Returns the current record's "CN_AUXILIAR_8" value
 * @method CN_MAE_TER   getCNMAETER()        Returns the current record's "CN_MAE_TER" value
 * @method CN_MAE_TER   getCNMAETER10()      Returns the current record's "CN_MAE_TER_10" value
 * @method CN_MAE_TER   getCNMAETER11()      Returns the current record's "CN_MAE_TER_11" value
 * @method CN_MAE_TER   getCNMAETER12()      Returns the current record's "CN_MAE_TER_12" value
 * @method CNI_RUTA     setIdRuta()          Sets the current record's "id_ruta" value
 * @method CNI_RUTA     setIdCia()           Sets the current record's "id_cia" value
 * @method CNI_RUTA     setIdInterfaz()      Sets the current record's "id_interfaz" value
 * @method CNI_RUTA     setNombre()          Sets the current record's "nombre" value
 * @method CNI_RUTA     setCondicion()       Sets the current record's "condicion" value
 * @method CNI_RUTA     setCampoValor()      Sets the current record's "campo_valor" value
 * @method CNI_RUTA     setIdClaseCuenta()   Sets the current record's "id_clase_cuenta" value
 * @method CNI_RUTA     setIdGrupoCuenta()   Sets the current record's "id_grupo_cuenta" value
 * @method CNI_RUTA     setIdCuentaMayor()   Sets the current record's "id_cuenta_mayor" value
 * @method CNI_RUTA     setIdCatalogo()      Sets the current record's "id_catalogo" value
 * @method CNI_RUTA     setIdAuxiliar()      Sets the current record's "id_auxiliar" value
 * @method CNI_RUTA     setNaturaleza()      Sets the current record's "naturaleza" value
 * @method CNI_RUTA     setEstado()          Sets the current record's "estado" value
 * @method CNI_RUTA     setIdMaeTer()        Sets the current record's "id_mae_ter" value
 * @method CNI_RUTA     setCNIINTERFAZ()     Sets the current record's "CNI_INTERFAZ" value
 * @method CNI_RUTA     setCNIINTERFAZ2()    Sets the current record's "CNI_INTERFAZ_2" value
 * @method CNI_RUTA     setCNIINTERFAZ3()    Sets the current record's "CNI_INTERFAZ_3" value
 * @method CNI_RUTA     setCNIINTERFAZ4()    Sets the current record's "CNI_INTERFAZ_4" value
 * @method CNI_RUTA     setCNAUXILIAR()      Sets the current record's "CN_AUXILIAR" value
 * @method CNI_RUTA     setCNAUXILIAR6()     Sets the current record's "CN_AUXILIAR_6" value
 * @method CNI_RUTA     setCNAUXILIAR7()     Sets the current record's "CN_AUXILIAR_7" value
 * @method CNI_RUTA     setCNAUXILIAR8()     Sets the current record's "CN_AUXILIAR_8" value
 * @method CNI_RUTA     setCNMAETER()        Sets the current record's "CN_MAE_TER" value
 * @method CNI_RUTA     setCNMAETER10()      Sets the current record's "CN_MAE_TER_10" value
 * @method CNI_RUTA     setCNMAETER11()      Sets the current record's "CN_MAE_TER_11" value
 * @method CNI_RUTA     setCNMAETER12()      Sets the current record's "CN_MAE_TER_12" value
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCNI_RUTA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CNI_RUTA');
        $this->hasColumn('id_ruta', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_cia', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_interfaz', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('nombre', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('condicion', 'string', 250, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('campo_valor', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('id_clase_cuenta', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_grupo_cuenta', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_cuenta_mayor', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_catalogo', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_auxiliar', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('naturaleza', 'string', 1, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('CNI_INTERFAZ as CNI_INTERFAZ_2', array(
             'local' => 'id_interfaz',
             'foreign' => 'id_interfaz'));

        $this->hasOne('CNI_INTERFAZ as CNI_INTERFAZ_3', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

        $this->hasOne('CNI_INTERFAZ as CNI_INTERFAZ_4', array(
             'local' => 'id_interfaz',
             'foreign' => 'id_cia'));

        $this->hasOne('CN_AUXILIAR', array(
             'local' => 'id_ruta',
             'foreign' => 'id_auxiliar'));

        $this->hasOne('CN_AUXILIAR as CN_AUXILIAR_6', array(
             'local' => 'id_auxiliar',
             'foreign' => 'id_auxiliar'));

        $this->hasOne('CN_AUXILIAR as CN_AUXILIAR_7', array(
             'local' => 'id_ruta',
             'foreign' => 'id_cia'));

        $this->hasOne('CN_AUXILIAR as CN_AUXILIAR_8', array(
             'local' => 'id_auxiliar',
             'foreign' => 'id_cia'));

        $this->hasOne('CN_MAE_TER', array(
             'local' => 'id_ruta',
             'foreign' => 'id_mae_ter'));

        $this->hasOne('CN_MAE_TER as CN_MAE_TER_10', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));

        $this->hasOne('CN_MAE_TER as CN_MAE_TER_11', array(
             'local' => 'id_ruta',
             'foreign' => 'id_cia'));

        $this->hasOne('CN_MAE_TER as CN_MAE_TER_12', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_cia'));
    }
}