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

/**
 * BaseCA_DET_PLAN_NOT
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_det_plan_not
 * @property integer $id_tipo_tramite
 * @property string $cod_exp
 * @property integer $id_titular
 * @property string $fs
 * @property timestamp $fecha_doc
 * @property string $acto
 * @property string $observaciones
 * @property integer $id_plan_not
 * @property CA_PLAN_NOT $CA_PLAN_NOT
 * @property CA_TIPO_TRAMITE $CA_TIPO_TRAMITE
 * 
 * @method integer         getIdDetPlanNot()    Returns the current record's "id_det_plan_not" value
 * @method integer         getIdTipoTramite()   Returns the current record's "id_tipo_tramite" value
 * @method string          getCodExp()          Returns the current record's "cod_exp" value
 * @method integer         getIdTitular()       Returns the current record's "id_titular" value
 * @method string          getFs()              Returns the current record's "fs" value
 * @method timestamp       getFechaDoc()        Returns the current record's "fecha_doc" value
 * @method string          getActo()            Returns the current record's "acto" value
 * @method string          getObservaciones()   Returns the current record's "observaciones" value
 * @method integer         getIdPlanNot()       Returns the current record's "id_plan_not" value
 * @method CA_PLAN_NOT     getCAPLANNOT()       Returns the current record's "CA_PLAN_NOT" value
 * @method CA_TIPO_TRAMITE getCATIPOTRAMITE()   Returns the current record's "CA_TIPO_TRAMITE" value
 * @method CA_DET_PLAN_NOT setIdDetPlanNot()    Sets the current record's "id_det_plan_not" value
 * @method CA_DET_PLAN_NOT setIdTipoTramite()   Sets the current record's "id_tipo_tramite" value
 * @method CA_DET_PLAN_NOT setCodExp()          Sets the current record's "cod_exp" value
 * @method CA_DET_PLAN_NOT setIdTitular()       Sets the current record's "id_titular" value
 * @method CA_DET_PLAN_NOT setFs()              Sets the current record's "fs" value
 * @method CA_DET_PLAN_NOT setFechaDoc()        Sets the current record's "fecha_doc" value
 * @method CA_DET_PLAN_NOT setActo()            Sets the current record's "acto" value
 * @method CA_DET_PLAN_NOT setObservaciones()   Sets the current record's "observaciones" value
 * @method CA_DET_PLAN_NOT setIdPlanNot()       Sets the current record's "id_plan_not" value
 * @method CA_DET_PLAN_NOT setCAPLANNOT()       Sets the current record's "CA_PLAN_NOT" value
 * @method CA_DET_PLAN_NOT setCATIPOTRAMITE()   Sets the current record's "CA_TIPO_TRAMITE" value
 * 
 * @package    canon
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCA_DET_PLAN_NOT extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_DET_PLAN_NOT');
        $this->hasColumn('id_det_plan_not', 'integer', 8, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => true,
            'length' => 8,
        ));
        $this->hasColumn('id_tipo_tramite', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('cod_exp', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_titular', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fs', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_doc', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('acto', 'string', 40, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 40,
             ));
        $this->hasColumn('observaciones', 'string', 3000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 3000,
             ));
        $this->hasColumn('id_plan_not', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('area', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('id_norma', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('anulado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasOne('CA_TIPO_TRAMITE', array(
             'local' => 'id_tipo_tramite',
             'foreign' => 'id_tipo_tramite'));
    }
}