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

/**
 * BaseTIPO_DE_NORMA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_norma
 * @property string $descripcion
 * @property Doctrine_Collection $NORMA
 * @property Doctrine_Collection $NORMAS
 * 
 * @method integer             getIdTipoNorma()   Returns the current record's "id_tipo_norma" value
 * @method string              getDescripcion()   Returns the current record's "descripcion" value
 * @method Doctrine_Collection getNORMA()         Returns the current record's "NORMA" collection
 * @method Doctrine_Collection getNORMAS()        Returns the current record's "NORMAS" collection
 * @method TIPO_DE_NORMA       setIdTipoNorma()   Sets the current record's "id_tipo_norma" value
 * @method TIPO_DE_NORMA       setDescripcion()   Sets the current record's "descripcion" value
 * @method TIPO_DE_NORMA       setNORMA()         Sets the current record's "NORMA" collection
 * @method TIPO_DE_NORMA       setNORMAS()        Sets the current record's "NORMAS" collection
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTIPO_DE_NORMA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TIPO_DE_NORMA');
        $this->hasColumn('id_tipo_norma', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
    }

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

        $this->hasMany('NORMAS', array(
             'local' => 'id_tipo_norma',
             'foreign' => 'tipo'));
    }
}