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

/**
 * BaseTS_FORMA_PAGO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_forma_pago
 * @property integer $id_rc
 * @property TS_RC $TS_RC
 * @property Doctrine_Collection $TS_FORMA_PAGO_DISTRI
 * 
 * @method integer             getIdFormaPago()          Returns the current record's "id_forma_pago" value
 * @method integer             getIdRc()                 Returns the current record's "id_rc" value
 * @method TS_RC               getTSRC()                 Returns the current record's "TS_RC" value
 * @method Doctrine_Collection getTSFORMAPAGODISTRI()    Returns the current record's "TS_FORMA_PAGO_DISTRI" collection
 * @method TS_FORMA_PAGO       setIdFormaPago()          Sets the current record's "id_forma_pago" value
 * @method TS_FORMA_PAGO       setIdRc()                 Sets the current record's "id_rc" value
 * @method TS_FORMA_PAGO       setTSRC()                 Sets the current record's "TS_RC" value
 * @method TS_FORMA_PAGO       setTSFORMAPAGODISTRI()    Sets the current record's "TS_FORMA_PAGO_DISTRI" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_FORMA_PAGO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_FORMA_PAGO');
        $this->hasColumn('id_forma_pago', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_rc', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasMany('TS_FORMA_PAGO_DISTRI', array(
             'local' => 'id_forma_pago',
             'foreign' => 'id_forma_pago'));
    }
}