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

/**
 * BaseCN_TIPO_COMPROBANTE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_comprobante
 * @property integer $id_cia
 * @property string $nom_tipo_comprobante
 * @property string $nom_corto
 * @property integer $activo
 * @property CN_CIA $CN_CIA
 * @property Doctrine_Collection $CN_TIPO_COMP_PERIODO_VALIDO
 * @property Doctrine_Collection $CN_TIPO_COMP_PERIODO_VALIDO_2
 * @property Doctrine_Collection $CN_TIPO_COMP_PERIODO_VALIDO_3
 * @property Doctrine_Collection $CN_TIPO_COMP_PERIODO_VALIDO_4
 * @property Doctrine_Collection $CN_CONTROL_CAD
 * @property Doctrine_Collection $CN_CONTROL_CAD_3
 * @property Doctrine_Collection $CN_CONTROL_CAD_4
 * @property Doctrine_Collection $CN_CONTROL_CAD_5
 * @property Doctrine_Collection $CNI_TRANSA
 * @property Doctrine_Collection $CNI_TRANSA_3
 * @property Doctrine_Collection $CNI_TRANSA_4
 * @property Doctrine_Collection $CNI_TRANSA_5
 * @property Doctrine_Collection $CNI_INTERFAZ
 * @property Doctrine_Collection $CNI_INTERFAZ_7
 * @property Doctrine_Collection $CNI_INTERFAZ_8
 * @property Doctrine_Collection $CNI_INTERFAZ_9
 * @property Doctrine_Collection $CN_CONTROL_CAD_7
 * @property Doctrine_Collection $CN_CONTROL_CAD_8
 * @property Doctrine_Collection $CN_CONTROL_CAD_9
 * @property Doctrine_Collection $CN_TIPO_COMP_PERIODO_VALIDO_5
 * 
 * @method integer             getIdTipoComprobante()             Returns the current record's "id_tipo_comprobante" value
 * @method integer             getIdCia()                         Returns the current record's "id_cia" value
 * @method string              getNomTipoComprobante()            Returns the current record's "nom_tipo_comprobante" value
 * @method string              getNomCorto()                      Returns the current record's "nom_corto" value
 * @method integer             getActivo()                        Returns the current record's "activo" value
 * @method CN_CIA              getCNCIA()                         Returns the current record's "CN_CIA" value
 * @method Doctrine_Collection getCNTIPOCOMPPERIODOVALIDO()       Returns the current record's "CN_TIPO_COMP_PERIODO_VALIDO" collection
 * @method Doctrine_Collection getCNTIPOCOMPPERIODOVALIDO2()      Returns the current record's "CN_TIPO_COMP_PERIODO_VALIDO_2" collection
 * @method Doctrine_Collection getCNTIPOCOMPPERIODOVALIDO3()      Returns the current record's "CN_TIPO_COMP_PERIODO_VALIDO_3" collection
 * @method Doctrine_Collection getCNTIPOCOMPPERIODOVALIDO4()      Returns the current record's "CN_TIPO_COMP_PERIODO_VALIDO_4" collection
 * @method Doctrine_Collection getCNCONTROLCAD()                  Returns the current record's "CN_CONTROL_CAD" collection
 * @method Doctrine_Collection getCNCONTROLCAD3()                 Returns the current record's "CN_CONTROL_CAD_3" collection
 * @method Doctrine_Collection getCNCONTROLCAD4()                 Returns the current record's "CN_CONTROL_CAD_4" collection
 * @method Doctrine_Collection getCNCONTROLCAD5()                 Returns the current record's "CN_CONTROL_CAD_5" collection
 * @method Doctrine_Collection getCNITRANSA()                     Returns the current record's "CNI_TRANSA" collection
 * @method Doctrine_Collection getCNITRANSA3()                    Returns the current record's "CNI_TRANSA_3" collection
 * @method Doctrine_Collection getCNITRANSA4()                    Returns the current record's "CNI_TRANSA_4" collection
 * @method Doctrine_Collection getCNITRANSA5()                    Returns the current record's "CNI_TRANSA_5" collection
 * @method Doctrine_Collection getCNIINTERFAZ()                   Returns the current record's "CNI_INTERFAZ" collection
 * @method Doctrine_Collection getCNIINTERFAZ7()                  Returns the current record's "CNI_INTERFAZ_7" collection
 * @method Doctrine_Collection getCNIINTERFAZ8()                  Returns the current record's "CNI_INTERFAZ_8" collection
 * @method Doctrine_Collection getCNIINTERFAZ9()                  Returns the current record's "CNI_INTERFAZ_9" collection
 * @method Doctrine_Collection getCNCONTROLCAD7()                 Returns the current record's "CN_CONTROL_CAD_7" collection
 * @method Doctrine_Collection getCNCONTROLCAD8()                 Returns the current record's "CN_CONTROL_CAD_8" collection
 * @method Doctrine_Collection getCNCONTROLCAD9()                 Returns the current record's "CN_CONTROL_CAD_9" collection
 * @method Doctrine_Collection getCNTIPOCOMPPERIODOVALIDO5()      Returns the current record's "CN_TIPO_COMP_PERIODO_VALIDO_5" collection
 * @method CN_TIPO_COMPROBANTE setIdTipoComprobante()             Sets the current record's "id_tipo_comprobante" value
 * @method CN_TIPO_COMPROBANTE setIdCia()                         Sets the current record's "id_cia" value
 * @method CN_TIPO_COMPROBANTE setNomTipoComprobante()            Sets the current record's "nom_tipo_comprobante" value
 * @method CN_TIPO_COMPROBANTE setNomCorto()                      Sets the current record's "nom_corto" value
 * @method CN_TIPO_COMPROBANTE setActivo()                        Sets the current record's "activo" value
 * @method CN_TIPO_COMPROBANTE setCNCIA()                         Sets the current record's "CN_CIA" value
 * @method CN_TIPO_COMPROBANTE setCNTIPOCOMPPERIODOVALIDO()       Sets the current record's "CN_TIPO_COMP_PERIODO_VALIDO" collection
 * @method CN_TIPO_COMPROBANTE setCNTIPOCOMPPERIODOVALIDO2()      Sets the current record's "CN_TIPO_COMP_PERIODO_VALIDO_2" collection
 * @method CN_TIPO_COMPROBANTE setCNTIPOCOMPPERIODOVALIDO3()      Sets the current record's "CN_TIPO_COMP_PERIODO_VALIDO_3" collection
 * @method CN_TIPO_COMPROBANTE setCNTIPOCOMPPERIODOVALIDO4()      Sets the current record's "CN_TIPO_COMP_PERIODO_VALIDO_4" collection
 * @method CN_TIPO_COMPROBANTE setCNCONTROLCAD()                  Sets the current record's "CN_CONTROL_CAD" collection
 * @method CN_TIPO_COMPROBANTE setCNCONTROLCAD3()                 Sets the current record's "CN_CONTROL_CAD_3" collection
 * @method CN_TIPO_COMPROBANTE setCNCONTROLCAD4()                 Sets the current record's "CN_CONTROL_CAD_4" collection
 * @method CN_TIPO_COMPROBANTE setCNCONTROLCAD5()                 Sets the current record's "CN_CONTROL_CAD_5" collection
 * @method CN_TIPO_COMPROBANTE setCNITRANSA()                     Sets the current record's "CNI_TRANSA" collection
 * @method CN_TIPO_COMPROBANTE setCNITRANSA3()                    Sets the current record's "CNI_TRANSA_3" collection
 * @method CN_TIPO_COMPROBANTE setCNITRANSA4()                    Sets the current record's "CNI_TRANSA_4" collection
 * @method CN_TIPO_COMPROBANTE setCNITRANSA5()                    Sets the current record's "CNI_TRANSA_5" collection
 * @method CN_TIPO_COMPROBANTE setCNIINTERFAZ()                   Sets the current record's "CNI_INTERFAZ" collection
 * @method CN_TIPO_COMPROBANTE setCNIINTERFAZ7()                  Sets the current record's "CNI_INTERFAZ_7" collection
 * @method CN_TIPO_COMPROBANTE setCNIINTERFAZ8()                  Sets the current record's "CNI_INTERFAZ_8" collection
 * @method CN_TIPO_COMPROBANTE setCNIINTERFAZ9()                  Sets the current record's "CNI_INTERFAZ_9" collection
 * @method CN_TIPO_COMPROBANTE setCNCONTROLCAD7()                 Sets the current record's "CN_CONTROL_CAD_7" collection
 * @method CN_TIPO_COMPROBANTE setCNCONTROLCAD8()                 Sets the current record's "CN_CONTROL_CAD_8" collection
 * @method CN_TIPO_COMPROBANTE setCNCONTROLCAD9()                 Sets the current record's "CN_CONTROL_CAD_9" collection
 * @method CN_TIPO_COMPROBANTE setCNTIPOCOMPPERIODOVALIDO5()      Sets the current record's "CN_TIPO_COMP_PERIODO_VALIDO_5" collection
 * @property Doctrine_Collection $﻿CNI_TRANSA
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCN_TIPO_COMPROBANTE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CN_TIPO_COMPROBANTE');
        $this->hasColumn('id_tipo_comprobante', '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('nom_tipo_comprobante', 'string', 128, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
        $this->hasColumn('nom_corto', 'string', 32, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 32,
             ));
        $this->hasColumn('activo', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasMany('CN_TIPO_COMP_PERIODO_VALIDO', array(
             'local' => 'id_tipo_comprobante',
             'foreign' => 'id_tipo_comprobante'));

        $this->hasMany('CN_TIPO_COMP_PERIODO_VALIDO as CN_TIPO_COMP_PERIODO_VALIDO_2', array(
             'local' => 'id_tipo_comprobante',
             'foreign' => 'id_cia'));

        $this->hasMany('CN_TIPO_COMP_PERIODO_VALIDO as CN_TIPO_COMP_PERIODO_VALIDO_3', array(
             'local' => 'id_cia',
             'foreign' => 'id_tipo_comprobante'));

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

        $this->hasMany('CN_CONTROL_CAD', array(
             'local' => 'id_tipo_comprobante',
             'foreign' => 'id_cia'));

        $this->hasMany('CN_CONTROL_CAD as CN_CONTROL_CAD_3', array(
             'local' => 'id_tipo_comprobante',
             'foreign' => 'id_tipo_comprobante'));

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

        $this->hasMany('CN_CONTROL_CAD as CN_CONTROL_CAD_5', array(
             'local' => 'id_cia',
             'foreign' => 'id_tipo_comprobante'));

        $this->hasMany('CNI_TRANSA', array(
             'local' => 'id_tipo_comprobante',
             'foreign' => 'id_cia'));

        $this->hasMany('CNI_TRANSA as CNI_TRANSA_3', array(
             'local' => 'id_tipo_comprobante',
             'foreign' => 'id_tipo_comprobante'));

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

        $this->hasMany('CNI_TRANSA as CNI_TRANSA_5', array(
             'local' => 'id_cia',
             'foreign' => 'id_tipo_comprobante'));

        $this->hasMany('CNI_INTERFAZ', array(
             'local' => 'id_tipo_comprobante',
             'foreign' => 'id_cia'));

        $this->hasMany('CNI_INTERFAZ as CNI_INTERFAZ_7', array(
             'local' => 'id_tipo_comprobante',
             'foreign' => 'id_tipo_comprobante'));

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

        $this->hasMany('CNI_INTERFAZ as CNI_INTERFAZ_9', array(
             'local' => 'id_cia',
             'foreign' => 'id_tipo_comprobante'));

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

        $this->hasMany('CN_CONTROL_CAD as CN_CONTROL_CAD_8', array(
             'local' => 'id_tipo_comprobante',
             'foreign' => 'id_tipo_comprobante'));

        $this->hasMany('CN_CONTROL_CAD as CN_CONTROL_CAD_9', array(
             'local' => 'id_cia',
             'foreign' => 'id_tipo_comprobante'));

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

        $this->hasMany('﻿CNI_TRANSA', array(
             'local' => 'id_tipo_comprobante',
             'foreign' => 'id_cia'));
    }
}