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

/**
 * BaseTS_RC_CH
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_rc_ch
 * @property integer $id_bn
 * @property integer $nro_cuenta
 * @property integer $nro_cheque
 * @property integer $id_rc
 * @property TS_BN $TS_BN
 * @property TS_RC $TS_RC
 * 
 * @method integer  getIdRcCh()     Returns the current record's "id_rc_ch" value
 * @method integer  getIdBn()       Returns the current record's "id_bn" value
 * @method integer  getNroCuenta()  Returns the current record's "nro_cuenta" value
 * @method integer  getNroCheque()  Returns the current record's "nro_cheque" value
 * @method integer  getIdRc()       Returns the current record's "id_rc" value
 * @method TS_BN    getTSBN()       Returns the current record's "TS_BN" value
 * @method TS_RC    getTSRC()       Returns the current record's "TS_RC" value
 * @method TS_RC_CH setIdRcCh()     Sets the current record's "id_rc_ch" value
 * @method TS_RC_CH setIdBn()       Sets the current record's "id_bn" value
 * @method TS_RC_CH setNroCuenta()  Sets the current record's "nro_cuenta" value
 * @method TS_RC_CH setNroCheque()  Sets the current record's "nro_cheque" value
 * @method TS_RC_CH setIdRc()       Sets the current record's "id_rc" value
 * @method TS_RC_CH setTSBN()       Sets the current record's "TS_BN" value
 * @method TS_RC_CH setTSRC()       Sets the current record's "TS_RC" 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_RC_CH extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_RC_CH');
        $this->hasColumn('id_rc_ch', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_bn', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('nro_cuenta', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('nro_cheque', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_rc', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('TS_RC', array(
             'local' => 'id_rc',
             'foreign' => 'id_rc'));
    }
}