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

/**
 * BaseNORMAS_CLASIFICACION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_nor_cla
 * @property integer $id
 * @property integer $id_norma
 * @property integer $id_clasificacion
 * @property CLASIFICACION $CLASIFICACION
 * @property NORMAS $NORMAS
 * 
 * @method integer              getIdNorCla()         Returns the current record's "id_nor_cla" 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 CLASIFICACION        getCLASIFICACION()    Returns the current record's "CLASIFICACION" value
 * @method NORMAS               getNORMAS()           Returns the current record's "NORMAS" value
 * @method NORMAS_CLASIFICACION setIdNorCla()         Sets the current record's "id_nor_cla" value
 * @method NORMAS_CLASIFICACION setId()               Sets the current record's "id" value
 * @method NORMAS_CLASIFICACION setIdNorma()          Sets the current record's "id_norma" value
 * @method NORMAS_CLASIFICACION setIdClasificacion()  Sets the current record's "id_clasificacion" value
 * @method NORMAS_CLASIFICACION setCLASIFICACION()    Sets the current record's "CLASIFICACION" value
 * @method NORMAS_CLASIFICACION setNORMAS()           Sets the current record's "NORMAS" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNORMAS_CLASIFICACION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NORMAS_CLASIFICACION');
        $this->hasColumn('id_nor_cla', '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' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_clasificacion', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

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