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

/**
 * BaseIN_CLASE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_clase
 * @property integer $id_linea
 * @property string $caracteres
 * @property string $descripcion
 * @property string $desc_corta
 * @property integer $vida_util
 * @property integer $tipo_inventario
 * @property integer $id_tipo_seguro
 * @property integer $estado
 * @property IN_LINEA $IN_LINEA
 * @property IN_TIPO_SEGURO $IN_TIPO_SEGURO
 * @property Doctrine_Collection $IN_PARTES_CLASE
 * @property Doctrine_Collection $IN_PARTES_CLASE_11
 * @property Doctrine_Collection $IN_PARTES_CLASE_12
 * @property Doctrine_Collection $IN_PARTES_CLASE_13
 * @property Doctrine_Collection $IN_PARAM_CONTAB
 * @property Doctrine_Collection $IN_PARAM_CONTAB_2
 * @property Doctrine_Collection $IN_PARAM_CONTAB_3
 * @property Doctrine_Collection $IN_PARAM_CONTAB_4
 * @property Doctrine_Collection $IN_CATALOGO
 * @property Doctrine_Collection $IN_CATALOGO_2
 * @property Doctrine_Collection $IN_CATALOGO_3
 * @property Doctrine_Collection $IN_CATALOGO_4
 * 
 * @method integer             getIdClase()            Returns the current record's "id_clase" value
 * @method integer             getIdLinea()            Returns the current record's "id_linea" value
 * @method string              getCaracteres()         Returns the current record's "caracteres" value
 * @method string              getDescripcion()        Returns the current record's "descripcion" value
 * @method string              getDescCorta()          Returns the current record's "desc_corta" value
 * @method integer             getVidaUtil()           Returns the current record's "vida_util" value
 * @method integer             getTipoInventario()     Returns the current record's "tipo_inventario" value
 * @method integer             getIdTipoSeguro()       Returns the current record's "id_tipo_seguro" value
 * @method integer             getEstado()             Returns the current record's "estado" value
 * @method IN_LINEA            getINLINEA()            Returns the current record's "IN_LINEA" value
 * @method IN_TIPO_SEGURO      getINTIPOSEGURO()       Returns the current record's "IN_TIPO_SEGURO" value
 * @method Doctrine_Collection getINPARTESCLASE()      Returns the current record's "IN_PARTES_CLASE" collection
 * @method Doctrine_Collection getINPARTESCLASE11()    Returns the current record's "IN_PARTES_CLASE_11" collection
 * @method Doctrine_Collection getINPARTESCLASE12()    Returns the current record's "IN_PARTES_CLASE_12" collection
 * @method Doctrine_Collection getINPARTESCLASE13()    Returns the current record's "IN_PARTES_CLASE_13" collection
 * @method Doctrine_Collection getINPARAMCONTAB()      Returns the current record's "IN_PARAM_CONTAB" collection
 * @method Doctrine_Collection getINPARAMCONTAB2()     Returns the current record's "IN_PARAM_CONTAB_2" collection
 * @method Doctrine_Collection getINPARAMCONTAB3()     Returns the current record's "IN_PARAM_CONTAB_3" collection
 * @method Doctrine_Collection getINPARAMCONTAB4()     Returns the current record's "IN_PARAM_CONTAB_4" collection
 * @method Doctrine_Collection getINCATALOGO()         Returns the current record's "IN_CATALOGO" collection
 * @method Doctrine_Collection getINCATALOGO2()        Returns the current record's "IN_CATALOGO_2" collection
 * @method Doctrine_Collection getINCATALOGO3()        Returns the current record's "IN_CATALOGO_3" collection
 * @method Doctrine_Collection getINCATALOGO4()        Returns the current record's "IN_CATALOGO_4" collection
 * @method IN_CLASE            setIdClase()            Sets the current record's "id_clase" value
 * @method IN_CLASE            setIdLinea()            Sets the current record's "id_linea" value
 * @method IN_CLASE            setCaracteres()         Sets the current record's "caracteres" value
 * @method IN_CLASE            setDescripcion()        Sets the current record's "descripcion" value
 * @method IN_CLASE            setDescCorta()          Sets the current record's "desc_corta" value
 * @method IN_CLASE            setVidaUtil()           Sets the current record's "vida_util" value
 * @method IN_CLASE            setTipoInventario()     Sets the current record's "tipo_inventario" value
 * @method IN_CLASE            setIdTipoSeguro()       Sets the current record's "id_tipo_seguro" value
 * @method IN_CLASE            setEstado()             Sets the current record's "estado" value
 * @method IN_CLASE            setINLINEA()            Sets the current record's "IN_LINEA" value
 * @method IN_CLASE            setINTIPOSEGURO()       Sets the current record's "IN_TIPO_SEGURO" value
 * @method IN_CLASE            setINPARTESCLASE()      Sets the current record's "IN_PARTES_CLASE" collection
 * @method IN_CLASE            setINPARTESCLASE11()    Sets the current record's "IN_PARTES_CLASE_11" collection
 * @method IN_CLASE            setINPARTESCLASE12()    Sets the current record's "IN_PARTES_CLASE_12" collection
 * @method IN_CLASE            setINPARTESCLASE13()    Sets the current record's "IN_PARTES_CLASE_13" collection
 * @method IN_CLASE            setINPARAMCONTAB()      Sets the current record's "IN_PARAM_CONTAB" collection
 * @method IN_CLASE            setINPARAMCONTAB2()     Sets the current record's "IN_PARAM_CONTAB_2" collection
 * @method IN_CLASE            setINPARAMCONTAB3()     Sets the current record's "IN_PARAM_CONTAB_3" collection
 * @method IN_CLASE            setINPARAMCONTAB4()     Sets the current record's "IN_PARAM_CONTAB_4" collection
 * @method IN_CLASE            setINCATALOGO()         Sets the current record's "IN_CATALOGO" collection
 * @method IN_CLASE            setINCATALOGO2()        Sets the current record's "IN_CATALOGO_2" collection
 * @method IN_CLASE            setINCATALOGO3()        Sets the current record's "IN_CATALOGO_3" collection
 * @method IN_CLASE            setINCATALOGO4()        Sets the current record's "IN_CATALOGO_4" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseIN_CLASE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_CLASE');
        $this->hasColumn('id_clase', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_linea', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('caracteres', 'string', 2, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2,
             ));
        $this->hasColumn('descripcion', 'string', 150, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
        $this->hasColumn('desc_corta', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vida_util', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('tipo_inventario', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_tipo_seguro', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1
                ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasOne('IN_TIPO_SEGURO', array(
             'local' => 'id_tipo_seguro',
             'foreign' => 'id_tipo_seguro'));

        $this->hasMany('IN_PARTES_CLASE', array(
             'local' => 'id_clase',
             'foreign' => 'id_clase'));

        $this->hasMany('IN_PARTES_CLASE as IN_PARTES_CLASE_11', array(
             'local' => 'id_clase',
             'foreign' => 'id_linea'));

        $this->hasMany('IN_PARTES_CLASE as IN_PARTES_CLASE_12', array(
             'local' => 'id_linea',
             'foreign' => 'id_clase'));

        $this->hasMany('IN_PARTES_CLASE as IN_PARTES_CLASE_13', array(
             'local' => 'id_linea',
             'foreign' => 'id_linea'));

        $this->hasMany('IN_PARAM_CONTAB', array(
             'local' => 'id_clase',
             'foreign' => 'id_clase'));

        $this->hasMany('IN_PARAM_CONTAB as IN_PARAM_CONTAB_2', array(
             'local' => 'id_clase',
             'foreign' => 'id_linea'));

        $this->hasMany('IN_PARAM_CONTAB as IN_PARAM_CONTAB_3', array(
             'local' => 'id_linea',
             'foreign' => 'id_clase'));

        $this->hasMany('IN_PARAM_CONTAB as IN_PARAM_CONTAB_4', array(
             'local' => 'id_linea',
             'foreign' => 'id_linea'));

        $this->hasMany('IN_CATALOGO', array(
             'local' => 'id_clase',
             'foreign' => 'id_clase'));

        $this->hasMany('IN_CATALOGO as IN_CATALOGO_2', array(
             'local' => 'id_clase',
             'foreign' => 'id_linea'));

        $this->hasMany('IN_CATALOGO as IN_CATALOGO_3', array(
             'local' => 'id_linea',
             'foreign' => 'id_clase'));

        $this->hasMany('IN_CATALOGO as IN_CATALOGO_4', array(
             'local' => 'id_linea',
             'foreign' => 'id_linea'));
    }
}