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

/**
 * BaseTS_MEDIO_PAGO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_medio_pago
 * @property string $descripcion
 * @property Doctrine_Collection $TS_PAGO_OBL
 * @property Doctrine_Collection $CM_PAGO_OBL
 * 
 * @method integer             getIdMedioPago()   Returns the current record's "id_medio_pago" value
 * @method string              getDescripcion()   Returns the current record's "descripcion" value
 * @method Doctrine_Collection getTSPAGOOBL()     Returns the current record's "TS_PAGO_OBL" collection
 * @method Doctrine_Collection getCMPAGOOBL()     Returns the current record's "CM_PAGO_OBL" collection
 * @method TS_MEDIO_PAGO       setIdMedioPago()   Sets the current record's "id_medio_pago" value
 * @method TS_MEDIO_PAGO       setDescripcion()   Sets the current record's "descripcion" value
 * @method TS_MEDIO_PAGO       setTSPAGOOBL()     Sets the current record's "TS_PAGO_OBL" collection
 * @method TS_MEDIO_PAGO       setCMPAGOOBL()     Sets the current record's "CM_PAGO_OBL" 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_MEDIO_PAGO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_MEDIO_PAGO');
        $this->hasColumn('id_medio_pago', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
    }

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

        $this->hasMany('CM_PAGO_OBL', array(
             'local' => 'id_medio_pago',
             'foreign' => 'id_medio_pago'));
    }
}