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

/**
 * BaseTS_PAC
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_pr_catalogo_pac
 * @property integer $id_nivel_agrup
 * @property decimal $valor
 * @property timestamp $fecha
 * @property integer $id_mov_banc
 * @property string $mes
 * @property PR_CATALOGO_PAC $PR_CATALOGO_PAC
 * @property TS_MOV_BANC $TS_MOV_BANC
 * 
 * @method integer         getId()                 Returns the current record's "id" value
 * @method integer         getIdPrCatalogoPac()    Returns the current record's "id_pr_catalogo_pac" value
 * @method integer         getIdNivelAgrup()       Returns the current record's "id_nivel_agrup" value
 * @method decimal         getValor()              Returns the current record's "valor" value
 * @method timestamp       getFecha()              Returns the current record's "fecha" value
 * @method integer         getIdMovBanc()          Returns the current record's "id_mov_banc" value
 * @method string          getMes()                Returns the current record's "mes" value
 * @method PR_CATALOGO_PAC getPRCATALOGOPAC()      Returns the current record's "PR_CATALOGO_PAC" value
 * @method TS_MOV_BANC     getTSMOVBANC()          Returns the current record's "TS_MOV_BANC" value
 * @method TS_PAC          setId()                 Sets the current record's "id" value
 * @method TS_PAC          setIdPrCatalogoPac()    Sets the current record's "id_pr_catalogo_pac" value
 * @method TS_PAC          setIdNivelAgrup()       Sets the current record's "id_nivel_agrup" value
 * @method TS_PAC          setValor()              Sets the current record's "valor" value
 * @method TS_PAC          setFecha()              Sets the current record's "fecha" value
 * @method TS_PAC          setIdMovBanc()          Sets the current record's "id_mov_banc" value
 * @method TS_PAC          setMes()                Sets the current record's "mes" value
 * @method TS_PAC          setPRCATALOGOPAC()      Sets the current record's "PR_CATALOGO_PAC" value
 * @method TS_PAC          setTSMOVBANC()          Sets the current record's "TS_MOV_BANC" 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_PAC extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_PAC');
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_pr_catalogo_pac', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_nivel_agrup', '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,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_mov_banc', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('mes', 'string', 2, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2,
             ));
    }

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

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