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

/**
 * BaseCA_TIPO_TRAMITE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_tramite
 * @property string $descripcion
 * @property integer $notifica
 * @property integer $estado
 * @property Doctrine_Collection $CA_DET_PLAN_NOT
 * 
 * @method integer             getIdTipoTramite()   Returns the current record's "id_tipo_tramite" value
 * @method string              getDescripcion()     Returns the current record's "descripcion" value
 * @method integer             getNotifica()        Returns the current record's "notifica" value
 * @method integer             getEstado()          Returns the current record's "estado" value
 * @method Doctrine_Collection getCADETPLANNOT()    Returns the current record's "CA_DET_PLAN_NOT" collection
 * @method CA_TIPO_TRAMITE     setIdTipoTramite()   Sets the current record's "id_tipo_tramite" value
 * @method CA_TIPO_TRAMITE     setDescripcion()     Sets the current record's "descripcion" value
 * @method CA_TIPO_TRAMITE     setNotifica()        Sets the current record's "notifica" value
 * @method CA_TIPO_TRAMITE     setEstado()          Sets the current record's "estado" value
 * @method CA_TIPO_TRAMITE     setCADETPLANNOT()    Sets the current record's "CA_DET_PLAN_NOT" collection
 * 
 * @package    canon
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCA_TIPO_TRAMITE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_TIPO_TRAMITE');
        $this->hasColumn('id_tipo_tramite', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 50, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('notifica', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('estado', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 8,
             ));
    }

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