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

/**
 * BaseCNI_INTERFAZ
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_interfaz
 * @property integer $id_cia
 * @property string $nombre
 * @property string $descripcion
 * @property string $condicion
 * @property string $consulta
 * @property integer $id_conexion
 * @property integer $id_tipo_comprobante
 * @property integer $id_td
 * @property string $campo_num_doc
 * @property string $campo_num_doc_sopor
 * @property string $campo_fec_doc
 * @property string $campo_observs_doc
 * @property integer $estado
 * @property CN_TD $CN_TD
 * @property CNI_CONEXION $CNI_CONEXION
 * @property CNI_CONEXION $CNI_CONEXION_3
 * @property CNI_CONEXION $CNI_CONEXION_4
 * @property CNI_CONEXION $CNI_CONEXION_5
 * @property CN_TIPO_COMPROBANTE $CN_TIPO_COMPROBANTE
 * @property CN_TIPO_COMPROBANTE $CN_TIPO_COMPROBANTE_7
 * @property CN_TIPO_COMPROBANTE $CN_TIPO_COMPROBANTE_8
 * @property CN_TIPO_COMPROBANTE $CN_TIPO_COMPROBANTE_9
 * @property Doctrine_Collection $CNI_RUTA
 * @property Doctrine_Collection $CNI_RUTA_2
 * @property Doctrine_Collection $CNI_RUTA_3
 * @property Doctrine_Collection $CNI_RUTA_4
 * @property Doctrine_Collection $CNI_RES_INTERFAZ
 * @property Doctrine_Collection $CNI_RES_INTERFAZ_2
 * @property Doctrine_Collection $CNI_RES_INTERFAZ_3
 * @property Doctrine_Collection $CNI_RES_INTERFAZ_4
 * @property Doctrine_Collection $CNI_REL_INTERFAZ
 * @property Doctrine_Collection $CNI_REL_INTERFAZ_2
 * @property Doctrine_Collection $CNI_REL_INTERFAZ_3
 * @property Doctrine_Collection $CNI_REL_INTERFAZ_4
 * @property Doctrine_Collection $CNI_REL_INTERFAZ_5
 * @property Doctrine_Collection $CNI_REL_INTERFAZ_6
 * @property Doctrine_Collection $CNI_REL_INTERFAZ_7
 * @property Doctrine_Collection $CNI_REL_INTERFAZ_8
 * @property Doctrine_Collection $CNI_PARAM_INTERFAZ
 * @property Doctrine_Collection $CNI_PARAM_INTERFAZ_2
 * @property Doctrine_Collection $CNI_PARAM_INTERFAZ_3
 * @property Doctrine_Collection $CNI_PARAM_INTERFAZ_4
 * @property Doctrine_Collection $CNI_LOG_INTERFAZ
 * @property Doctrine_Collection $CNI_LOG_INTERFAZ_2
 * @property Doctrine_Collection $CNI_LOG_INTERFAZ_3
 * @property Doctrine_Collection $CNI_LOG_INTERFAZ_4
 * 
 * @method integer             getIdInterfaz()            Returns the current record's "id_interfaz" value
 * @method integer             getIdCia()                 Returns the current record's "id_cia" value
 * @method string              getNombre()                Returns the current record's "nombre" value
 * @method string              getDescripcion()           Returns the current record's "descripcion" value
 * @method string              getCondicion()             Returns the current record's "condicion" value
 * @method string              getConsulta()              Returns the current record's "consulta" value
 * @method integer             getIdConexion()            Returns the current record's "id_conexion" value
 * @method integer             getIdTipoComprobante()     Returns the current record's "id_tipo_comprobante" value
 * @method integer             getIdTd()                  Returns the current record's "id_td" value
 * @method string              getCampoNumDoc()           Returns the current record's "campo_num_doc" value
 * @method string              getCampoNumDocSopor()      Returns the current record's "campo_num_doc_sopor" value
 * @method string              getCampoFecDoc()           Returns the current record's "campo_fec_doc" value
 * @method string              getCampoObservsDoc()       Returns the current record's "campo_observs_doc" value
 * @method integer             getEstado()                Returns the current record's "estado" value
 * @method CN_TD               getCNTD()                  Returns the current record's "CN_TD" value
 * @method CNI_CONEXION        getCNICONEXION()           Returns the current record's "CNI_CONEXION" value
 * @method CNI_CONEXION        getCNICONEXION3()          Returns the current record's "CNI_CONEXION_3" value
 * @method CNI_CONEXION        getCNICONEXION4()          Returns the current record's "CNI_CONEXION_4" value
 * @method CNI_CONEXION        getCNICONEXION5()          Returns the current record's "CNI_CONEXION_5" value
 * @method CN_TIPO_COMPROBANTE getCNTIPOCOMPROBANTE()     Returns the current record's "CN_TIPO_COMPROBANTE" value
 * @method CN_TIPO_COMPROBANTE getCNTIPOCOMPROBANTE7()    Returns the current record's "CN_TIPO_COMPROBANTE_7" value
 * @method CN_TIPO_COMPROBANTE getCNTIPOCOMPROBANTE8()    Returns the current record's "CN_TIPO_COMPROBANTE_8" value
 * @method CN_TIPO_COMPROBANTE getCNTIPOCOMPROBANTE9()    Returns the current record's "CN_TIPO_COMPROBANTE_9" value
 * @method Doctrine_Collection getCNIRUTA()               Returns the current record's "CNI_RUTA" collection
 * @method Doctrine_Collection getCNIRUTA2()              Returns the current record's "CNI_RUTA_2" collection
 * @method Doctrine_Collection getCNIRUTA3()              Returns the current record's "CNI_RUTA_3" collection
 * @method Doctrine_Collection getCNIRUTA4()              Returns the current record's "CNI_RUTA_4" collection
 * @method Doctrine_Collection getCNIRESINTERFAZ()        Returns the current record's "CNI_RES_INTERFAZ" collection
 * @method Doctrine_Collection getCNIRESINTERFAZ2()       Returns the current record's "CNI_RES_INTERFAZ_2" collection
 * @method Doctrine_Collection getCNIRESINTERFAZ3()       Returns the current record's "CNI_RES_INTERFAZ_3" collection
 * @method Doctrine_Collection getCNIRESINTERFAZ4()       Returns the current record's "CNI_RES_INTERFAZ_4" collection
 * @method Doctrine_Collection getCNIRELINTERFAZ()        Returns the current record's "CNI_REL_INTERFAZ" collection
 * @method Doctrine_Collection getCNIRELINTERFAZ2()       Returns the current record's "CNI_REL_INTERFAZ_2" collection
 * @method Doctrine_Collection getCNIRELINTERFAZ3()       Returns the current record's "CNI_REL_INTERFAZ_3" collection
 * @method Doctrine_Collection getCNIRELINTERFAZ4()       Returns the current record's "CNI_REL_INTERFAZ_4" collection
 * @method Doctrine_Collection getCNIRELINTERFAZ5()       Returns the current record's "CNI_REL_INTERFAZ_5" collection
 * @method Doctrine_Collection getCNIRELINTERFAZ6()       Returns the current record's "CNI_REL_INTERFAZ_6" collection
 * @method Doctrine_Collection getCNIRELINTERFAZ7()       Returns the current record's "CNI_REL_INTERFAZ_7" collection
 * @method Doctrine_Collection getCNIRELINTERFAZ8()       Returns the current record's "CNI_REL_INTERFAZ_8" collection
 * @method Doctrine_Collection getCNIPARAMINTERFAZ()      Returns the current record's "CNI_PARAM_INTERFAZ" collection
 * @method Doctrine_Collection getCNIPARAMINTERFAZ2()     Returns the current record's "CNI_PARAM_INTERFAZ_2" collection
 * @method Doctrine_Collection getCNIPARAMINTERFAZ3()     Returns the current record's "CNI_PARAM_INTERFAZ_3" collection
 * @method Doctrine_Collection getCNIPARAMINTERFAZ4()     Returns the current record's "CNI_PARAM_INTERFAZ_4" collection
 * @method Doctrine_Collection getCNILOGINTERFAZ()        Returns the current record's "CNI_LOG_INTERFAZ" collection
 * @method Doctrine_Collection getCNILOGINTERFAZ2()       Returns the current record's "CNI_LOG_INTERFAZ_2" collection
 * @method Doctrine_Collection getCNILOGINTERFAZ3()       Returns the current record's "CNI_LOG_INTERFAZ_3" collection
 * @method Doctrine_Collection getCNILOGINTERFAZ4()       Returns the current record's "CNI_LOG_INTERFAZ_4" collection
 * @method CNI_INTERFAZ        setIdInterfaz()            Sets the current record's "id_interfaz" value
 * @method CNI_INTERFAZ        setIdCia()                 Sets the current record's "id_cia" value
 * @method CNI_INTERFAZ        setNombre()                Sets the current record's "nombre" value
 * @method CNI_INTERFAZ        setDescripcion()           Sets the current record's "descripcion" value
 * @method CNI_INTERFAZ        setCondicion()             Sets the current record's "condicion" value
 * @method CNI_INTERFAZ        setConsulta()              Sets the current record's "consulta" value
 * @method CNI_INTERFAZ        setIdConexion()            Sets the current record's "id_conexion" value
 * @method CNI_INTERFAZ        setIdTipoComprobante()     Sets the current record's "id_tipo_comprobante" value
 * @method CNI_INTERFAZ        setIdTd()                  Sets the current record's "id_td" value
 * @method CNI_INTERFAZ        setCampoNumDoc()           Sets the current record's "campo_num_doc" value
 * @method CNI_INTERFAZ        setCampoNumDocSopor()      Sets the current record's "campo_num_doc_sopor" value
 * @method CNI_INTERFAZ        setCampoFecDoc()           Sets the current record's "campo_fec_doc" value
 * @method CNI_INTERFAZ        setCampoObservsDoc()       Sets the current record's "campo_observs_doc" value
 * @method CNI_INTERFAZ        setEstado()                Sets the current record's "estado" value
 * @method CNI_INTERFAZ        setCNTD()                  Sets the current record's "CN_TD" value
 * @method CNI_INTERFAZ        setCNICONEXION()           Sets the current record's "CNI_CONEXION" value
 * @method CNI_INTERFAZ        setCNICONEXION3()          Sets the current record's "CNI_CONEXION_3" value
 * @method CNI_INTERFAZ        setCNICONEXION4()          Sets the current record's "CNI_CONEXION_4" value
 * @method CNI_INTERFAZ        setCNICONEXION5()          Sets the current record's "CNI_CONEXION_5" value
 * @method CNI_INTERFAZ        setCNTIPOCOMPROBANTE()     Sets the current record's "CN_TIPO_COMPROBANTE" value
 * @method CNI_INTERFAZ        setCNTIPOCOMPROBANTE7()    Sets the current record's "CN_TIPO_COMPROBANTE_7" value
 * @method CNI_INTERFAZ        setCNTIPOCOMPROBANTE8()    Sets the current record's "CN_TIPO_COMPROBANTE_8" value
 * @method CNI_INTERFAZ        setCNTIPOCOMPROBANTE9()    Sets the current record's "CN_TIPO_COMPROBANTE_9" value
 * @method CNI_INTERFAZ        setCNIRUTA()               Sets the current record's "CNI_RUTA" collection
 * @method CNI_INTERFAZ        setCNIRUTA2()              Sets the current record's "CNI_RUTA_2" collection
 * @method CNI_INTERFAZ        setCNIRUTA3()              Sets the current record's "CNI_RUTA_3" collection
 * @method CNI_INTERFAZ        setCNIRUTA4()              Sets the current record's "CNI_RUTA_4" collection
 * @method CNI_INTERFAZ        setCNIRESINTERFAZ()        Sets the current record's "CNI_RES_INTERFAZ" collection
 * @method CNI_INTERFAZ        setCNIRESINTERFAZ2()       Sets the current record's "CNI_RES_INTERFAZ_2" collection
 * @method CNI_INTERFAZ        setCNIRESINTERFAZ3()       Sets the current record's "CNI_RES_INTERFAZ_3" collection
 * @method CNI_INTERFAZ        setCNIRESINTERFAZ4()       Sets the current record's "CNI_RES_INTERFAZ_4" collection
 * @method CNI_INTERFAZ        setCNIRELINTERFAZ()        Sets the current record's "CNI_REL_INTERFAZ" collection
 * @method CNI_INTERFAZ        setCNIRELINTERFAZ2()       Sets the current record's "CNI_REL_INTERFAZ_2" collection
 * @method CNI_INTERFAZ        setCNIRELINTERFAZ3()       Sets the current record's "CNI_REL_INTERFAZ_3" collection
 * @method CNI_INTERFAZ        setCNIRELINTERFAZ4()       Sets the current record's "CNI_REL_INTERFAZ_4" collection
 * @method CNI_INTERFAZ        setCNIRELINTERFAZ5()       Sets the current record's "CNI_REL_INTERFAZ_5" collection
 * @method CNI_INTERFAZ        setCNIRELINTERFAZ6()       Sets the current record's "CNI_REL_INTERFAZ_6" collection
 * @method CNI_INTERFAZ        setCNIRELINTERFAZ7()       Sets the current record's "CNI_REL_INTERFAZ_7" collection
 * @method CNI_INTERFAZ        setCNIRELINTERFAZ8()       Sets the current record's "CNI_REL_INTERFAZ_8" collection
 * @method CNI_INTERFAZ        setCNIPARAMINTERFAZ()      Sets the current record's "CNI_PARAM_INTERFAZ" collection
 * @method CNI_INTERFAZ        setCNIPARAMINTERFAZ2()     Sets the current record's "CNI_PARAM_INTERFAZ_2" collection
 * @method CNI_INTERFAZ        setCNIPARAMINTERFAZ3()     Sets the current record's "CNI_PARAM_INTERFAZ_3" collection
 * @method CNI_INTERFAZ        setCNIPARAMINTERFAZ4()     Sets the current record's "CNI_PARAM_INTERFAZ_4" collection
 * @method CNI_INTERFAZ        setCNILOGINTERFAZ()        Sets the current record's "CNI_LOG_INTERFAZ" collection
 * @method CNI_INTERFAZ        setCNILOGINTERFAZ2()       Sets the current record's "CNI_LOG_INTERFAZ_2" collection
 * @method CNI_INTERFAZ        setCNILOGINTERFAZ3()       Sets the current record's "CNI_LOG_INTERFAZ_3" collection
 * @method CNI_INTERFAZ        setCNILOGINTERFAZ4()       Sets the current record's "CNI_LOG_INTERFAZ_4" collection
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCNI_INTERFAZ extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CNI_INTERFAZ');
        $this->hasColumn('id_interfaz', '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('nombre', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('descripcion', 'string', 250, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('condicion', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('consulta', 'string', 4000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('id_conexion', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_tipo_comprobante', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_td', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('campo_num_doc', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('campo_num_doc_sopor', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('campo_fec_doc', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('campo_observs_doc', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('campo_id_mae_ter', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasOne('CNI_CONEXION', array(
             'local' => 'id_cia',
             'foreign' => 'id_conexion'));

        $this->hasOne('CNI_CONEXION as CNI_CONEXION_3', array(
             'local' => 'id_conexion',
             'foreign' => 'id_conexion'));

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

        $this->hasOne('CNI_CONEXION as CNI_CONEXION_5', array(
             'local' => 'id_conexion',
             'foreign' => 'id_cia'));

        $this->hasOne('CN_TIPO_COMPROBANTE', array(
             'local' => 'id_cia',
             'foreign' => 'id_tipo_comprobante'));

        $this->hasOne('CN_TIPO_COMPROBANTE as CN_TIPO_COMPROBANTE_7', array(
             'local' => 'id_tipo_comprobante',
             'foreign' => 'id_tipo_comprobante'));

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

        $this->hasOne('CN_TIPO_COMPROBANTE as CN_TIPO_COMPROBANTE_9', array(
             'local' => 'id_tipo_comprobante',
             'foreign' => 'id_cia'));

        $this->hasMany('CNI_RUTA', array(
             'local' => 'id_interfaz',
             'foreign' => 'id_cia'));

        $this->hasMany('CNI_RUTA as CNI_RUTA_2', array(
             'local' => 'id_interfaz',
             'foreign' => 'id_interfaz'));

        $this->hasMany('CNI_RUTA as CNI_RUTA_3', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

        $this->hasMany('CNI_RUTA as CNI_RUTA_4', array(
             'local' => 'id_cia',
             'foreign' => 'id_interfaz'));

        $this->hasMany('CNI_RES_INTERFAZ', array(
             'local' => 'id_interfaz',
             'foreign' => 'id_cia'));

        $this->hasMany('CNI_RES_INTERFAZ as CNI_RES_INTERFAZ_2', array(
             'local' => 'id_interfaz',
             'foreign' => 'id_interfaz'));

        $this->hasMany('CNI_RES_INTERFAZ as CNI_RES_INTERFAZ_3', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

        $this->hasMany('CNI_RES_INTERFAZ as CNI_RES_INTERFAZ_4', array(
             'local' => 'id_cia',
             'foreign' => 'id_interfaz'));

        $this->hasMany('CNI_REL_INTERFAZ', array(
             'local' => 'id_interfaz',
             'foreign' => 'id_interfaz_padre'));

        $this->hasMany('CNI_REL_INTERFAZ as CNI_REL_INTERFAZ_2', array(
             'local' => 'id_interfaz',
             'foreign' => 'id_cia'));

        $this->hasMany('CNI_REL_INTERFAZ as CNI_REL_INTERFAZ_3', array(
             'local' => 'id_cia',
             'foreign' => 'id_interfaz_padre'));

        $this->hasMany('CNI_REL_INTERFAZ as CNI_REL_INTERFAZ_4', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

        $this->hasMany('CNI_REL_INTERFAZ as CNI_REL_INTERFAZ_5', array(
             'local' => 'id_interfaz',
             'foreign' => 'id_interfaz_hijo'));

        $this->hasMany('CNI_REL_INTERFAZ as CNI_REL_INTERFAZ_6', array(
             'local' => 'id_interfaz',
             'foreign' => 'id_cia'));

        $this->hasMany('CNI_REL_INTERFAZ as CNI_REL_INTERFAZ_7', array(
             'local' => 'id_cia',
             'foreign' => 'id_interfaz_hijo'));

        $this->hasMany('CNI_REL_INTERFAZ as CNI_REL_INTERFAZ_8', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

        $this->hasMany('CNI_PARAM_INTERFAZ', array(
             'local' => 'id_interfaz',
             'foreign' => 'id_cia'));

        $this->hasMany('CNI_PARAM_INTERFAZ as CNI_PARAM_INTERFAZ_2', array(
             'local' => 'id_interfaz',
             'foreign' => 'id_interfaz'));

        $this->hasMany('CNI_PARAM_INTERFAZ as CNI_PARAM_INTERFAZ_3', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

        $this->hasMany('CNI_PARAM_INTERFAZ as CNI_PARAM_INTERFAZ_4', array(
             'local' => 'id_cia',
             'foreign' => 'id_interfaz'));

        $this->hasMany('CNI_LOG_INTERFAZ', array(
             'local' => 'id_interfaz',
             'foreign' => 'id_cia'));

        $this->hasMany('CNI_LOG_INTERFAZ as CNI_LOG_INTERFAZ_2', array(
             'local' => 'id_interfaz',
             'foreign' => 'id_interfaz'));

        $this->hasMany('CNI_LOG_INTERFAZ as CNI_LOG_INTERFAZ_3', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

        $this->hasMany('CNI_LOG_INTERFAZ as CNI_LOG_INTERFAZ_4', array(
             'local' => 'id_cia',
             'foreign' => 'id_interfaz'));
    }
}