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

/**
 * BaseNORMA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $tipo_doc
 * @property string $numero_doc
 * @property timestamp $fecha
 * @property string $observaciones
 * @property integer $id_norma
 * @property integer $id
 * @property TIPO_DE_NORMA $TIPO_DE_NORMA
 * 
 * @method integer       getTipoDoc()       Returns the current record's "tipo_doc" value
 * @method string        getNumeroDoc()     Returns the current record's "numero_doc" value
 * @method timestamp     getFecha()         Returns the current record's "fecha" value
 * @method string        getObservaciones() Returns the current record's "observaciones" value
 * @method integer       getIdNorma()       Returns the current record's "id_norma" value
 * @method integer       getId()            Returns the current record's "id" value
 * @method TIPO_DE_NORMA getTIPODENORMA()   Returns the current record's "TIPO_DE_NORMA" value
 * @method NORMA         setTipoDoc()       Sets the current record's "tipo_doc" value
 * @method NORMA         setNumeroDoc()     Sets the current record's "numero_doc" value
 * @method NORMA         setFecha()         Sets the current record's "fecha" value
 * @method NORMA         setObservaciones() Sets the current record's "observaciones" value
 * @method NORMA         setIdNorma()       Sets the current record's "id_norma" value
 * @method NORMA         setId()            Sets the current record's "id" value
 * @method NORMA         setTIPODENORMA()   Sets the current record's "TIPO_DE_NORMA" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNORMA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NORMA');
        $this->hasColumn('tipo_doc', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('numero_doc', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('observaciones', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('id_norma', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('TIPO_DE_NORMA', array(
             'local' => 'tipo_doc',
             'foreign' => 'id_tipo_norma'));
    }
}