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

/**
 * BaseCM_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 CM_M_CH $CM_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 CM_M_CH   getCMMCH()      Returns the current record's "CM_M_CH" value
 * @method CM_CH     setIdCh()       Sets the current record's "id_ch" value
 * @method CM_CH     setIdMCh()      Sets the current record's "id_m_ch" value
 * @method CM_CH     setChequeI()    Sets the current record's "cheque_i" value
 * @method CM_CH     setChequeF()    Sets the current record's "cheque_f" value
 * @method CM_CH     setTotalC()     Sets the current record's "total_c" value
 * @method CM_CH     setFecha()      Sets the current record's "fecha" value
 * @method CM_CH     setEstado()     Sets the current record's "estado" value
 * @method CM_CH     setTotalGen()   Sets the current record's "total_gen" value
 * @method CM_CH     setTotalDisp()  Sets the current record's "total_disp" value
 * @method CM_CH     setCMMCH()      Sets the current record's "CM_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 BaseCM_CH extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CM_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('CM_M_CH', array(
             'local' => 'id_m_ch',
             'foreign' => 'id'));
    }
}