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

/**
 * BaseTS_FORMA_PAGO_DISTRI
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_forma_pago_distri
 * @property integer $id_pc_fp
 * @property integer $num_doc_pago
 * @property integer $id_bn
 * @property string $valor_pago
 * @property integer $id_forma_pago
 * @property TS_BN $TS_BN
 * @property TS_FORMA_PAGO $TS_FORMA_PAGO
 * @property TS_PC_FP $TS_PC_FP
 * 
 * @method integer              getIdFormaPagoDistri()    Returns the current record's "id_forma_pago_distri" value
 * @method integer              getIdPcFp()               Returns the current record's "id_pc_fp" value
 * @method integer              getNumDocPago()           Returns the current record's "num_doc_pago" value
 * @method integer              getIdBn()                 Returns the current record's "id_bn" value
 * @method string               getValorPago()            Returns the current record's "valor_pago" value
 * @method integer              getIdFormaPago()          Returns the current record's "id_forma_pago" value
 * @method TS_BN                getTSBN()                 Returns the current record's "TS_BN" value
 * @method TS_FORMA_PAGO        getTSFORMAPAGO()          Returns the current record's "TS_FORMA_PAGO" value
 * @method TS_PC_FP             getTSPCFP()               Returns the current record's "TS_PC_FP" value
 * @method TS_FORMA_PAGO_DISTRI setIdFormaPagoDistri()    Sets the current record's "id_forma_pago_distri" value
 * @method TS_FORMA_PAGO_DISTRI setIdPcFp()               Sets the current record's "id_pc_fp" value
 * @method TS_FORMA_PAGO_DISTRI setNumDocPago()           Sets the current record's "num_doc_pago" value
 * @method TS_FORMA_PAGO_DISTRI setIdBn()                 Sets the current record's "id_bn" value
 * @method TS_FORMA_PAGO_DISTRI setValorPago()            Sets the current record's "valor_pago" value
 * @method TS_FORMA_PAGO_DISTRI setIdFormaPago()          Sets the current record's "id_forma_pago" value
 * @method TS_FORMA_PAGO_DISTRI setTSBN()                 Sets the current record's "TS_BN" value
 * @method TS_FORMA_PAGO_DISTRI setTSFORMAPAGO()          Sets the current record's "TS_FORMA_PAGO" value
 * @method TS_FORMA_PAGO_DISTRI setTSPCFP()               Sets the current record's "TS_PC_FP" 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 BaseTS_FORMA_PAGO_DISTRI extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_FORMA_PAGO_DISTRI');
        $this->hasColumn('id_forma_pago_distri', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_pc_fp', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_doc_pago', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_bn', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_pago', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_forma_pago', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('TS_FORMA_PAGO', array(
             'local' => 'id_forma_pago',
             'foreign' => 'id_forma_pago'));

        $this->hasOne('TS_PC_FP', array(
             'local' => 'id_pc_fp',
             'foreign' => 'id'));
    }
}