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

/**
 * BaseIN_LINEA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_linea
 * @property string $digitos
 * @property string $descripcion
 * @property string $desc_corta
 * @property integer $estado
 * @property Doctrine_Collection $IN_CLASE
 * 
 * @method integer             getIdLinea()     Returns the current record's "id_linea" value
 * @method string              getDigitos()     Returns the current record's "digitos" value
 * @method string              getDescripcion() Returns the current record's "descripcion" value
 * @method string              getDescCorta()   Returns the current record's "desc_corta" value
 * @method integer             getEstado()      Returns the current record's "estado" value
 * @method Doctrine_Collection getINCLASE()     Returns the current record's "IN_CLASE" collection
 * @method IN_LINEA            setIdLinea()     Sets the current record's "id_linea" value
 * @method IN_LINEA            setDigitos()     Sets the current record's "digitos" value
 * @method IN_LINEA            setDescripcion() Sets the current record's "descripcion" value
 * @method IN_LINEA            setDescCorta()   Sets the current record's "desc_corta" value
 * @method IN_LINEA            setEstado()      Sets the current record's "estado" value
 * @method IN_LINEA            setINCLASE()     Sets the current record's "IN_CLASE" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseIN_LINEA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_LINEA');
        $this->hasColumn('id_linea', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('digitos', 'string', 2, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2,
             ));
        $this->hasColumn('descripcion', 'string', 250, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('desc_corta', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1
                ',
             'primary' => false,
             'length' => 1,
             ));
    }

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