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

/**
 * BaseCA_DEBITO_DETALLE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_debito_detalle
 * @property integer $id_debito
 * @property integer $id_producto
 * @property integer $cantidad
 * @property decimal $valor_unitario
 * @property decimal $valor_iva
 * @property decimal $valor_dcto
 * @property decimal $porcen_dcto
 * @property decimal $valor_total
 * @property string $observaciones
 * @property decimal $por_iva
 * @property CA_DEBITO $CA_DEBITO
 * @property CA_PRODUCTO $CA_PRODUCTO
 * 
 * @method integer           getIdDebitoDetalle()   Returns the current record's "id_debito_detalle" value
 * @method integer           getIdDebito()          Returns the current record's "id_debito" value
 * @method integer           getIdProducto()        Returns the current record's "id_producto" value
 * @method integer           getCantidad()          Returns the current record's "cantidad" value
 * @method decimal           getValorUnitario()     Returns the current record's "valor_unitario" value
 * @method decimal           getValorIva()          Returns the current record's "valor_iva" value
 * @method decimal           getValorDcto()         Returns the current record's "valor_dcto" value
 * @method decimal           getPorcenDcto()        Returns the current record's "porcen_dcto" value
 * @method decimal           getValorTotal()        Returns the current record's "valor_total" value
 * @method string            getObservaciones()     Returns the current record's "observaciones" value
 * @method decimal           getPorIva()            Returns the current record's "por_iva" value
 * @method CA_DEBITO         getCADEBITO()          Returns the current record's "CA_DEBITO" value
 * @method CA_PRODUCTO       getCAPRODUCTO()        Returns the current record's "CA_PRODUCTO" value
 * @method CA_DEBITO_DETALLE setIdDebitoDetalle()   Sets the current record's "id_debito_detalle" value
 * @method CA_DEBITO_DETALLE setIdDebito()          Sets the current record's "id_debito" value
 * @method CA_DEBITO_DETALLE setIdProducto()        Sets the current record's "id_producto" value
 * @method CA_DEBITO_DETALLE setCantidad()          Sets the current record's "cantidad" value
 * @method CA_DEBITO_DETALLE setValorUnitario()     Sets the current record's "valor_unitario" value
 * @method CA_DEBITO_DETALLE setValorIva()          Sets the current record's "valor_iva" value
 * @method CA_DEBITO_DETALLE setValorDcto()         Sets the current record's "valor_dcto" value
 * @method CA_DEBITO_DETALLE setPorcenDcto()        Sets the current record's "porcen_dcto" value
 * @method CA_DEBITO_DETALLE setValorTotal()        Sets the current record's "valor_total" value
 * @method CA_DEBITO_DETALLE setObservaciones()     Sets the current record's "observaciones" value
 * @method CA_DEBITO_DETALLE setPorIva()            Sets the current record's "por_iva" value
 * @method CA_DEBITO_DETALLE setCADEBITO()          Sets the current record's "CA_DEBITO" value
 * @method CA_DEBITO_DETALLE setCAPRODUCTO()        Sets the current record's "CA_PRODUCTO" value
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCA_DEBITO_DETALLE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_DEBITO_DETALLE');
        $this->hasColumn('id_debito_detalle', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_debito', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_producto', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('cantidad', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_unitario', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('valor_iva', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('valor_dcto', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('porcen_dcto', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_total', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('observaciones', 'string', 4000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('por_iva', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('CA_PRODUCTO', array(
             'local' => 'id_producto',
             'foreign' => 'id_producto'));
    }
}