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

/**
 * BaseTS_ANUL_NOTAS_TESO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_anul_nota
 * @property integer $id_not_teso
 * @property timestamp $fecha_anul
 * @property string $observaciones
 * @property string $usuario
 * @property timestamp $fecha_sys
 * @property TS_NOT_TESO $TS_NOT_TESO
 * 
 * @method integer            getIdAnulNota()    Returns the current record's "id_anul_nota" value
 * @method integer            getIdNotTeso()     Returns the current record's "id_not_teso" value
 * @method timestamp          getFechaAnul()     Returns the current record's "fecha_anul" value
 * @method string             getObservaciones() Returns the current record's "observaciones" value
 * @method string             getUsuario()       Returns the current record's "usuario" value
 * @method timestamp          getFechaSys()      Returns the current record's "fecha_sys" value
 * @method TS_NOT_TESO        getTSNOTTESO()     Returns the current record's "TS_NOT_TESO" value
 * @method TS_ANUL_NOTAS_TESO setIdAnulNota()    Sets the current record's "id_anul_nota" value
 * @method TS_ANUL_NOTAS_TESO setIdNotTeso()     Sets the current record's "id_not_teso" value
 * @method TS_ANUL_NOTAS_TESO setFechaAnul()     Sets the current record's "fecha_anul" value
 * @method TS_ANUL_NOTAS_TESO setObservaciones() Sets the current record's "observaciones" value
 * @method TS_ANUL_NOTAS_TESO setUsuario()       Sets the current record's "usuario" value
 * @method TS_ANUL_NOTAS_TESO setFechaSys()      Sets the current record's "fecha_sys" value
 * @method TS_ANUL_NOTAS_TESO setTSNOTTESO()     Sets the current record's "TS_NOT_TESO" 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_ANUL_NOTAS_TESO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_ANUL_NOTAS_TESO');
        $this->hasColumn('id_anul_nota', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_not_teso', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_anul', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('observaciones', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('usuario', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_sys', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

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