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

/**
 * BaseTS_ANUL_RC
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_anul
 * @property integer $id_rc
 * @property string $anular
 * @property timestamp $fecha_anul
 * @property string $motivo
 * @property string $usuariolog
 * @property timestamp $fechalog
 * @property TS_RC $TS_RC
 * 
 * @method integer    getIdAnul()     Returns the current record's "id_anul" value
 * @method integer    getIdRc()       Returns the current record's "id_rc" value
 * @method string     getAnular()     Returns the current record's "anular" value
 * @method timestamp  getFechaAnul()  Returns the current record's "fecha_anul" value
 * @method string     getMotivo()     Returns the current record's "motivo" value
 * @method string     getUsuariolog() Returns the current record's "usuariolog" value
 * @method timestamp  getFechalog()   Returns the current record's "fechalog" value
 * @method TS_RC      getTSRC()       Returns the current record's "TS_RC" value
 * @method TS_ANUL_RC setIdAnul()     Sets the current record's "id_anul" value
 * @method TS_ANUL_RC setIdRc()       Sets the current record's "id_rc" value
 * @method TS_ANUL_RC setAnular()     Sets the current record's "anular" value
 * @method TS_ANUL_RC setFechaAnul()  Sets the current record's "fecha_anul" value
 * @method TS_ANUL_RC setMotivo()     Sets the current record's "motivo" value
 * @method TS_ANUL_RC setUsuariolog() Sets the current record's "usuariolog" value
 * @method TS_ANUL_RC setFechalog()   Sets the current record's "fechalog" value
 * @method TS_ANUL_RC setTSRC()       Sets the current record's "TS_RC" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_ANUL_RC extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_ANUL_RC');
        $this->hasColumn('id_anul', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_rc', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('anular', 'string', 1, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fecha_anul', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('motivo', 'string', 300, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 300,
             ));
        $this->hasColumn('usuariolog', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fechalog', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

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