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

/**
 * BaseTS_OBLIGA_ACREE_DISTRI
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_obliga_acree_distri
 * @property integer $id_obliga_acreedores
 * @property integer $id_tercero
 * @property decimal $valor
 * @property INTERCEROS $INTERCEROS
 * @property TS_OBLIGA_ACREEDORES $TS_OBLIGA_ACREEDORES
 * 
 * @method integer                getIdObligaAcreeDistri()    Returns the current record's "id_obliga_acree_distri" value
 * @method integer                getIdObligaAcreedores()     Returns the current record's "id_obliga_acreedores" value
 * @method integer                getIdTercero()              Returns the current record's "id_tercero" value
 * @method decimal                getValor()                  Returns the current record's "valor" value
 * @method INTERCEROS             getINTERCEROS()             Returns the current record's "INTERCEROS" value
 * @method TS_OBLIGA_ACREEDORES   getTSOBLIGAACREEDORES()     Returns the current record's "TS_OBLIGA_ACREEDORES" value
 * @method TS_OBLIGA_ACREE_DISTRI setIdObligaAcreeDistri()    Sets the current record's "id_obliga_acree_distri" value
 * @method TS_OBLIGA_ACREE_DISTRI setIdObligaAcreedores()     Sets the current record's "id_obliga_acreedores" value
 * @method TS_OBLIGA_ACREE_DISTRI setIdTercero()              Sets the current record's "id_tercero" value
 * @method TS_OBLIGA_ACREE_DISTRI setValor()                  Sets the current record's "valor" value
 * @method TS_OBLIGA_ACREE_DISTRI setINTERCEROS()             Sets the current record's "INTERCEROS" value
 * @method TS_OBLIGA_ACREE_DISTRI setTSOBLIGAACREEDORES()     Sets the current record's "TS_OBLIGA_ACREEDORES" value
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_OBLIGA_ACREE_DISTRI extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_OBLIGA_ACREE_DISTRI');
        $this->hasColumn('id_obliga_acree_distri', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_obliga_acreedores', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tercero', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('TS_OBLIGA_ACREEDORES', array(
             'local' => 'id_obliga_acreedores',
             'foreign' => 'id_obliga_acreedores'));
    }
}