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

/**
 * BaseTS_OBLIGA_ACREEDORES
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_obliga_acreedores
 * @property integer $id_obligacion
 * @property integer $secuencia
 * @property integer $id_vigencia
 * @property string $vigencia
 * @property decimal $valor
 * @property string $usuario
 * @property timestamp $fecha_sys
 * @property timestamp $fecha_proceso
 * @property string $id_im
 * @property Doctrine_Collection $TS_OBLIGA_ACREE_DISTRI
 * 
 * @method integer              getIdObligaAcreedores()     Returns the current record's "id_obliga_acreedores" value
 * @method integer              getIdObligacion()           Returns the current record's "id_obligacion" value
 * @method integer              getSecuencia()              Returns the current record's "secuencia" value
 * @method integer              getIdVigencia()             Returns the current record's "id_vigencia" value
 * @method string               getVigencia()               Returns the current record's "vigencia" value
 * @method decimal              getValor()                  Returns the current record's "valor" value
 * @method string               getUsuario()                Returns the current record's "usuario" value
 * @method timestamp            getFechaSys()               Returns the current record's "fecha_sys" value
 * @method timestamp            getFechaProceso()           Returns the current record's "fecha_proceso" value
 * @method string               getIdIm()                   Returns the current record's "id_im" value
 * @method Doctrine_Collection  getTSOBLIGAACREEDISTRI()    Returns the current record's "TS_OBLIGA_ACREE_DISTRI" collection
 * @method TS_OBLIGA_ACREEDORES setIdObligaAcreedores()     Sets the current record's "id_obliga_acreedores" value
 * @method TS_OBLIGA_ACREEDORES setIdObligacion()           Sets the current record's "id_obligacion" value
 * @method TS_OBLIGA_ACREEDORES setSecuencia()              Sets the current record's "secuencia" value
 * @method TS_OBLIGA_ACREEDORES setIdVigencia()             Sets the current record's "id_vigencia" value
 * @method TS_OBLIGA_ACREEDORES setVigencia()               Sets the current record's "vigencia" value
 * @method TS_OBLIGA_ACREEDORES setValor()                  Sets the current record's "valor" value
 * @method TS_OBLIGA_ACREEDORES setUsuario()                Sets the current record's "usuario" value
 * @method TS_OBLIGA_ACREEDORES setFechaSys()               Sets the current record's "fecha_sys" value
 * @method TS_OBLIGA_ACREEDORES setFechaProceso()           Sets the current record's "fecha_proceso" value
 * @method TS_OBLIGA_ACREEDORES setIdIm()                   Sets the current record's "id_im" value
 * @method TS_OBLIGA_ACREEDORES setTSOBLIGAACREEDISTRI()    Sets the current record's "TS_OBLIGA_ACREE_DISTRI" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_OBLIGA_ACREEDORES extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_OBLIGA_ACREEDORES');
        $this->hasColumn('id_obliga_acreedores', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_obligacion', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('secuencia', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'decimal', 38, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('usuario', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_sys', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_proceso', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_im', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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