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

/**
 * BaseCN_CIA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_cia
 * @property string $raz_soc
 * @property integer $nro_iden
 * @property Doctrine_Collection $CN_TIPO_SUB_AUX
 * @property Doctrine_Collection $CN_TIPO_PARAMETRO
 * @property Doctrine_Collection $CN_TIPO_CUENTA
 * @property Doctrine_Collection $CN_TIPO_COMPROBANTE
 * @property Doctrine_Collection $CN_TABLE_VIG_SEQ
 * @property Doctrine_Collection $CN_TABLE_SEQ
 * @property Doctrine_Collection $CN_SUB_CENTRO_COSTO
 * @property Doctrine_Collection $CN_MAE_TER
 * @property Doctrine_Collection $CN_INFORME_FIRMA
 * @property Doctrine_Collection $CN_FIRMA
 * @property Doctrine_Collection $CN_CLASE_CUENTA
 * @property Doctrine_Collection $CN_CENTRO_OPERACION
 * @property Doctrine_Collection $CN_CENTRO_COSTO
 * @property Doctrine_Collection $CN_ALIAS
 * @property Doctrine_Collection $CNI_CONEXION
 * 
 * @method integer             getIdCia()               Returns the current record's "id_cia" value
 * @method string              getRazSoc()              Returns the current record's "raz_soc" value
 * @method integer             getNroIden()             Returns the current record's "nro_iden" value
 * @method Doctrine_Collection getCNTIPOSUBAUX()        Returns the current record's "CN_TIPO_SUB_AUX" collection
 * @method Doctrine_Collection getCNTIPOPARAMETRO()     Returns the current record's "CN_TIPO_PARAMETRO" collection
 * @method Doctrine_Collection getCNTIPOCUENTA()        Returns the current record's "CN_TIPO_CUENTA" collection
 * @method Doctrine_Collection getCNTIPOCOMPROBANTE()   Returns the current record's "CN_TIPO_COMPROBANTE" collection
 * @method Doctrine_Collection getCNTABLEVIGSEQ()       Returns the current record's "CN_TABLE_VIG_SEQ" collection
 * @method Doctrine_Collection getCNTABLESEQ()          Returns the current record's "CN_TABLE_SEQ" collection
 * @method Doctrine_Collection getCNSUBCENTROCOSTO()    Returns the current record's "CN_SUB_CENTRO_COSTO" collection
 * @method Doctrine_Collection getCNMAETER()            Returns the current record's "CN_MAE_TER" collection
 * @method Doctrine_Collection getCNINFORMEFIRMA()      Returns the current record's "CN_INFORME_FIRMA" collection
 * @method Doctrine_Collection getCNFIRMA()             Returns the current record's "CN_FIRMA" collection
 * @method Doctrine_Collection getCNCLASECUENTA()       Returns the current record's "CN_CLASE_CUENTA" collection
 * @method Doctrine_Collection getCNCENTROOPERACION()   Returns the current record's "CN_CENTRO_OPERACION" collection
 * @method Doctrine_Collection getCNCENTROCOSTO()       Returns the current record's "CN_CENTRO_COSTO" collection
 * @method Doctrine_Collection getCNALIAS()             Returns the current record's "CN_ALIAS" collection
 * @method Doctrine_Collection getCNICONEXION()         Returns the current record's "CNI_CONEXION" collection
 * @method CN_CIA              setIdCia()               Sets the current record's "id_cia" value
 * @method CN_CIA              setRazSoc()              Sets the current record's "raz_soc" value
 * @method CN_CIA              setNroIden()             Sets the current record's "nro_iden" value
 * @method CN_CIA              setCNTIPOSUBAUX()        Sets the current record's "CN_TIPO_SUB_AUX" collection
 * @method CN_CIA              setCNTIPOPARAMETRO()     Sets the current record's "CN_TIPO_PARAMETRO" collection
 * @method CN_CIA              setCNTIPOCUENTA()        Sets the current record's "CN_TIPO_CUENTA" collection
 * @method CN_CIA              setCNTIPOCOMPROBANTE()   Sets the current record's "CN_TIPO_COMPROBANTE" collection
 * @method CN_CIA              setCNTABLEVIGSEQ()       Sets the current record's "CN_TABLE_VIG_SEQ" collection
 * @method CN_CIA              setCNTABLESEQ()          Sets the current record's "CN_TABLE_SEQ" collection
 * @method CN_CIA              setCNSUBCENTROCOSTO()    Sets the current record's "CN_SUB_CENTRO_COSTO" collection
 * @method CN_CIA              setCNMAETER()            Sets the current record's "CN_MAE_TER" collection
 * @method CN_CIA              setCNINFORMEFIRMA()      Sets the current record's "CN_INFORME_FIRMA" collection
 * @method CN_CIA              setCNFIRMA()             Sets the current record's "CN_FIRMA" collection
 * @method CN_CIA              setCNCLASECUENTA()       Sets the current record's "CN_CLASE_CUENTA" collection
 * @method CN_CIA              setCNCENTROOPERACION()   Sets the current record's "CN_CENTRO_OPERACION" collection
 * @method CN_CIA              setCNCENTROCOSTO()       Sets the current record's "CN_CENTRO_COSTO" collection
 * @method CN_CIA              setCNALIAS()             Sets the current record's "CN_ALIAS" collection
 * @method CN_CIA              setCNICONEXION()         Sets the current record's "CNI_CONEXION" collection
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCN_CIA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CN_CIA');
        $this->hasColumn('id_cia', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('raz_soc', 'string', 128, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
        $this->hasColumn('nro_iden', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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