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

/**
 * BaseTS_CH
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_ch
 * @property integer $id_m_ch
 * @property string $cheque_i
 * @property string $cheque_f
 * @property integer $total_c
 * @property timestamp $fecha
 * @property integer $estado
 * @property integer $total_gen
 * @property integer $total_disp
 * @property TS_M_CH $TS_M_CH
 * 
 * @method integer   getIdCh()       Returns the current record's "id_ch" value
 * @method integer   getIdMCh()      Returns the current record's "id_m_ch" value
 * @method string    getChequeI()    Returns the current record's "cheque_i" value
 * @method string    getChequeF()    Returns the current record's "cheque_f" value
 * @method integer   getTotalC()     Returns the current record's "total_c" value
 * @method timestamp getFecha()      Returns the current record's "fecha" value
 * @method integer   getEstado()     Returns the current record's "estado" value
 * @method integer   getTotalGen()   Returns the current record's "total_gen" value
 * @method integer   getTotalDisp()  Returns the current record's "total_disp" value
 * @method TS_M_CH   getTSMCH()      Returns the current record's "TS_M_CH" value
 * @method TS_CH     setIdCh()       Sets the current record's "id_ch" value
 * @method TS_CH     setIdMCh()      Sets the current record's "id_m_ch" value
 * @method TS_CH     setChequeI()    Sets the current record's "cheque_i" value
 * @method TS_CH     setChequeF()    Sets the current record's "cheque_f" value
 * @method TS_CH     setTotalC()     Sets the current record's "total_c" value
 * @method TS_CH     setFecha()      Sets the current record's "fecha" value
 * @method TS_CH     setEstado()     Sets the current record's "estado" value
 * @method TS_CH     setTotalGen()   Sets the current record's "total_gen" value
 * @method TS_CH     setTotalDisp()  Sets the current record's "total_disp" value
 * @method TS_CH     setTSMCH()      Sets the current record's "TS_M_CH" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_CH extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_CH');
        $this->hasColumn('id_ch', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_m_ch', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('cheque_i', 'string', 50, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('cheque_f', 'string', 50, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('total_c', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('total_gen', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('total_disp', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 20,
             ));
    }

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