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

/**
 * BaseCA_PLAN_NOT
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_plan_not
 * @property integer $num_plan
 * @property timestamp $fecha_notificacion
 * @property integer $estado
 * @property integer $vigencia
 * @property Doctrine_Collection $CA_DET_PLAN_NOT
 * 
 * @method integer             getIdPlanNot()          Returns the current record's "id_plan_not" value
 * @method integer             getNumPlan()            Returns the current record's "num_plan" value
 * @method timestamp           getFechaNotificacion()  Returns the current record's "fecha_notificacion" value
 * @method integer             getEstado()             Returns the current record's "estado" value
 * @method integer             getVigencia()           Returns the current record's "vigencia" value
 * @method Doctrine_Collection getCADETPLANNOT()       Returns the current record's "CA_DET_PLAN_NOT" collection
 * @method CA_PLAN_NOT         setIdPlanNot()          Sets the current record's "id_plan_not" value
 * @method CA_PLAN_NOT         setNumPlan()            Sets the current record's "num_plan" value
 * @method CA_PLAN_NOT         setFechaNotificacion()  Sets the current record's "fecha_notificacion" value
 * @method CA_PLAN_NOT         setEstado()             Sets the current record's "estado" value
 * @method CA_PLAN_NOT         setVigencia()           Sets the current record's "vigencia" value
 * @method CA_PLAN_NOT         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_PLAN_NOT extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_PLAN_NOT');
        $this->hasColumn('id_plan_not', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('num_plan', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_notificacion', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('estado', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('vigencia', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_competencia', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_usuario_anula', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_anula', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('motivo_anu', 'string', 256, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 256,
             ));
        $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->hasMany('CA_DET_PLAN_NOT', array(
             'local' => 'id_plan_not',
             'foreign' => 'id_plan_not'));
    }
}