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

/**
 * BaseCA_CLASIF_TRIBUTARIA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_clasificacion_tributaria
 * @property string $nombre
 * @property string $descripcion
 * @property integer $estado
 * @property Doctrine_Collection $CA_PRODUCTO
 * 
 * @method integer              getIdClasificacionTributaria()   Returns the current record's "id_clasificacion_tributaria" value
 * @method string               getNombre()                      Returns the current record's "nombre" value
 * @method string               getDescripcion()                 Returns the current record's "descripcion" value
 * @method integer              getEstado()                      Returns the current record's "estado" value
 * @method Doctrine_Collection  getCAPRODUCTO()                  Returns the current record's "CA_PRODUCTO" collection
 * @method CA_CLASIF_TRIBUTARIA setIdClasificacionTributaria()   Sets the current record's "id_clasificacion_tributaria" value
 * @method CA_CLASIF_TRIBUTARIA setNombre()                      Sets the current record's "nombre" value
 * @method CA_CLASIF_TRIBUTARIA setDescripcion()                 Sets the current record's "descripcion" value
 * @method CA_CLASIF_TRIBUTARIA setEstado()                      Sets the current record's "estado" value
 * @method CA_CLASIF_TRIBUTARIA setCAPRODUCTO()                  Sets the current record's "CA_PRODUCTO" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCA_CLASIF_TRIBUTARIA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_CLASIF_TRIBUTARIA');
        $this->hasColumn('id_clasificacion_tributaria', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('nombre', 'string', 64, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 64,
             ));
        $this->hasColumn('descripcion', 'string', 256, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 256,
             ));
        $this->hasColumn('estado', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 8,
             ));
    }

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