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

/**
 * BaseCN_TIPO_SUB_AUX
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_sub_aux
 * @property integer $id_cia
 * @property string $descr
 * @property string $descr_corta
 * @property integer $activo
 * @property CN_CIA $CN_CIA
 * @property Doctrine_Collection $CN_SUB_AUX
 * @property Doctrine_Collection $CN_SUB_AUX_2
 * @property Doctrine_Collection $CN_SUB_AUX_3
 * @property Doctrine_Collection $CN_SUB_AUX_4
 * @property Doctrine_Collection $CN_AUXILIAR
 * @property Doctrine_Collection $CN_AUXILIAR_2
 * @property Doctrine_Collection $CN_AUXILIAR_3
 * @property Doctrine_Collection $CN_AUXILIAR_4
 * @property Doctrine_Collection $CN_AUXILIAR_27
 * @property Doctrine_Collection $CN_AUXILIAR_28
 * @property Doctrine_Collection $CN_AUXILIAR_29
 * 
 * @method integer             getIdTipoSubAux()    Returns the current record's "id_tipo_sub_aux" value
 * @method integer             getIdCia()           Returns the current record's "id_cia" value
 * @method string              getDescr()           Returns the current record's "descr" value
 * @method string              getDescrCorta()      Returns the current record's "descr_corta" 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 getCNSUBAUX()        Returns the current record's "CN_SUB_AUX" collection
 * @method Doctrine_Collection getCNSUBAUX2()       Returns the current record's "CN_SUB_AUX_2" collection
 * @method Doctrine_Collection getCNSUBAUX3()       Returns the current record's "CN_SUB_AUX_3" collection
 * @method Doctrine_Collection getCNSUBAUX4()       Returns the current record's "CN_SUB_AUX_4" collection
 * @method Doctrine_Collection getCNAUXILIAR()      Returns the current record's "CN_AUXILIAR" collection
 * @method Doctrine_Collection getCNAUXILIAR2()     Returns the current record's "CN_AUXILIAR_2" collection
 * @method Doctrine_Collection getCNAUXILIAR3()     Returns the current record's "CN_AUXILIAR_3" collection
 * @method Doctrine_Collection getCNAUXILIAR4()     Returns the current record's "CN_AUXILIAR_4" collection
 * @method Doctrine_Collection getCNAUXILIAR27()    Returns the current record's "CN_AUXILIAR_27" collection
 * @method Doctrine_Collection getCNAUXILIAR28()    Returns the current record's "CN_AUXILIAR_28" collection
 * @method Doctrine_Collection getCNAUXILIAR29()    Returns the current record's "CN_AUXILIAR_29" collection
 * @method CN_TIPO_SUB_AUX     setIdTipoSubAux()    Sets the current record's "id_tipo_sub_aux" value
 * @method CN_TIPO_SUB_AUX     setIdCia()           Sets the current record's "id_cia" value
 * @method CN_TIPO_SUB_AUX     setDescr()           Sets the current record's "descr" value
 * @method CN_TIPO_SUB_AUX     setDescrCorta()      Sets the current record's "descr_corta" value
 * @method CN_TIPO_SUB_AUX     setActivo()          Sets the current record's "activo" value
 * @method CN_TIPO_SUB_AUX     setCNCIA()           Sets the current record's "CN_CIA" value
 * @method CN_TIPO_SUB_AUX     setCNSUBAUX()        Sets the current record's "CN_SUB_AUX" collection
 * @method CN_TIPO_SUB_AUX     setCNSUBAUX2()       Sets the current record's "CN_SUB_AUX_2" collection
 * @method CN_TIPO_SUB_AUX     setCNSUBAUX3()       Sets the current record's "CN_SUB_AUX_3" collection
 * @method CN_TIPO_SUB_AUX     setCNSUBAUX4()       Sets the current record's "CN_SUB_AUX_4" collection
 * @method CN_TIPO_SUB_AUX     setCNAUXILIAR()      Sets the current record's "CN_AUXILIAR" collection
 * @method CN_TIPO_SUB_AUX     setCNAUXILIAR2()     Sets the current record's "CN_AUXILIAR_2" collection
 * @method CN_TIPO_SUB_AUX     setCNAUXILIAR3()     Sets the current record's "CN_AUXILIAR_3" collection
 * @method CN_TIPO_SUB_AUX     setCNAUXILIAR4()     Sets the current record's "CN_AUXILIAR_4" collection
 * @method CN_TIPO_SUB_AUX     setCNAUXILIAR27()    Sets the current record's "CN_AUXILIAR_27" collection
 * @method CN_TIPO_SUB_AUX     setCNAUXILIAR28()    Sets the current record's "CN_AUXILIAR_28" collection
 * @method CN_TIPO_SUB_AUX     setCNAUXILIAR29()    Sets the current record's "CN_AUXILIAR_29" collection
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCN_TIPO_SUB_AUX extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CN_TIPO_SUB_AUX');
        $this->hasColumn('id_tipo_sub_aux', '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('descr', 'string', 128, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
        $this->hasColumn('descr_corta', 'string', 32, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 32,
             ));
        $this->hasColumn('activo', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasMany('CN_SUB_AUX', array(
             'local' => 'id_tipo_sub_aux',
             'foreign' => 'id_cia'));

        $this->hasMany('CN_SUB_AUX as CN_SUB_AUX_2', array(
             'local' => 'id_tipo_sub_aux',
             'foreign' => 'id_tipo_sub_aux'));

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

        $this->hasMany('CN_SUB_AUX as CN_SUB_AUX_4', array(
             'local' => 'id_cia',
             'foreign' => 'id_tipo_sub_aux'));

        $this->hasMany('CN_AUXILIAR', array(
             'local' => 'id_tipo_sub_aux',
             'foreign' => 'id_cia'));

        $this->hasMany('CN_AUXILIAR as CN_AUXILIAR_2', array(
             'local' => 'id_tipo_sub_aux',
             'foreign' => 'id_tipo_sub_aux'));

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

        $this->hasMany('CN_AUXILIAR as CN_AUXILIAR_4', array(
             'local' => 'id_cia',
             'foreign' => 'id_tipo_sub_aux'));

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

        $this->hasMany('CN_AUXILIAR as CN_AUXILIAR_28', array(
             'local' => 'id_tipo_sub_aux',
             'foreign' => 'id_tipo_sub_aux'));

        $this->hasMany('CN_AUXILIAR as CN_AUXILIAR_29', array(
             'local' => 'id_cia',
             'foreign' => 'id_tipo_sub_aux'));
    }
}