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

/**
 * BaseTS_CONCEP_NOTAS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_concepto
 * @property string $descripcion
 * @property string $estado
 * @property string $retencion
 * @property Doctrine_Collection $TS_NOT_TESO
 * 
 * @method integer             getIdConcepto()  Returns the current record's "id_concepto" value
 * @method string              getDescripcion() Returns the current record's "descripcion" value
 * @method string              getEstado()      Returns the current record's "estado" value
 * @method string              getRetencion()   Returns the current record's "retencion" value
 * @method Doctrine_Collection getTSNOTTESO()   Returns the current record's "TS_NOT_TESO" collection
 * @method TS_CONCEP_NOTAS     setIdConcepto()  Sets the current record's "id_concepto" value
 * @method TS_CONCEP_NOTAS     setDescripcion() Sets the current record's "descripcion" value
 * @method TS_CONCEP_NOTAS     setEstado()      Sets the current record's "estado" value
 * @method TS_CONCEP_NOTAS     setRetencion()   Sets the current record's "retencion" value
 * @method TS_CONCEP_NOTAS     setTSNOTTESO()   Sets the current record's "TS_NOT_TESO" collection
 * 
 * @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_CONCEP_NOTAS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_CONCEP_NOTAS');
        $this->hasColumn('id_concepto', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('estado', 'string', 1, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('retencion', 'string', 1, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
    }

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