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

/**
 * BaseMT_NAT_JUR
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_nat_jur
 * @property string $desc_jur
 * @property Doctrine_Collection $MAESTRO_TERCEROS
 * 
 * @method integer             getIdNatJur()         Returns the current record's "id_nat_jur" value
 * @method string              getDescJur()          Returns the current record's "desc_jur" value
 * @method Doctrine_Collection getMAESTROTERCEROS()  Returns the current record's "MAESTRO_TERCEROS" collection
 * @method MT_NAT_JUR          setIdNatJur()         Sets the current record's "id_nat_jur" value
 * @method MT_NAT_JUR          setDescJur()          Sets the current record's "desc_jur" value
 * @method MT_NAT_JUR          setMAESTROTERCEROS()  Sets the current record's "MAESTRO_TERCEROS" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseMT_NAT_JUR extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('MT_NAT_JUR');
        $this->hasColumn('id_nat_jur', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('desc_jur', 'string', 300, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 300,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('MAESTRO_TERCEROS', array(
             'local' => 'id_nat_jur',
             'foreign' => 'id_nat_jur'));
    }
}