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

/**
 * BasePROCESO_NORMA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_proc_norma
 * @property integer $id
 * @property integer $id_norma
 * @property integer $id_clasificacion
 * @property timestamp $fecha
 * @property string $estado
 * @property CLASIFICACION $CLASIFICACION
 * @property NORMAS $NORMAS
 * 
 * @method integer       getIdProcNorma()      Returns the current record's "id_proc_norma" value
 * @method integer       getId()               Returns the current record's "id" value
 * @method integer       getIdNorma()          Returns the current record's "id_norma" value
 * @method integer       getIdClasificacion()  Returns the current record's "id_clasificacion" value
 * @method timestamp     getFecha()            Returns the current record's "fecha" value
 * @method string        getEstado()           Returns the current record's "estado" value
 * @method CLASIFICACION getCLASIFICACION()    Returns the current record's "CLASIFICACION" value
 * @method NORMAS        getNORMAS()           Returns the current record's "NORMAS" value
 * @method PROCESO_NORMA setIdProcNorma()      Sets the current record's "id_proc_norma" value
 * @method PROCESO_NORMA setId()               Sets the current record's "id" value
 * @method PROCESO_NORMA setIdNorma()          Sets the current record's "id_norma" value
 * @method PROCESO_NORMA setIdClasificacion()  Sets the current record's "id_clasificacion" value
 * @method PROCESO_NORMA setFecha()            Sets the current record's "fecha" value
 * @method PROCESO_NORMA setEstado()           Sets the current record's "estado" value
 * @method PROCESO_NORMA setCLASIFICACION()    Sets the current record's "CLASIFICACION" value
 * @method PROCESO_NORMA setNORMAS()           Sets the current record's "NORMAS" value
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePROCESO_NORMA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PROCESO_NORMA');
        $this->hasColumn('id_proc_norma', 'integer', 20, array(
             '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,
             ));
        $this->hasColumn('id_norma', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_clasificacion', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('estado', 'string', 1, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasOne('NORMAS', array(
             'local' => 'id_norma',
             'foreign' => 'id_normas'));
    }
}