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

/**
 * BaseNO_TIPO_CONTRATO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_contrato
 * @property string $codigo
 * @property string $descripcion
 * @property Doctrine_Collection $NO_TIP_NOV_KA
 * @property Doctrine_Collection $NO_TIPO_NOV_VAC
 * 
 * @method integer             getIdTipoContrato()   Returns the current record's "id_tipo_contrato" value
 * @method string              getCodigo()           Returns the current record's "codigo" value
 * @method string              getDescripcion()      Returns the current record's "descripcion" value
 * @method Doctrine_Collection getNOTIPNOVKA()       Returns the current record's "NO_TIP_NOV_KA" collection
 * @method Doctrine_Collection getNOTIPONOVVAC()     Returns the current record's "NO_TIPO_NOV_VAC" collection
 * @method NO_TIPO_CONTRATO    setIdTipoContrato()   Sets the current record's "id_tipo_contrato" value
 * @method NO_TIPO_CONTRATO    setCodigo()           Sets the current record's "codigo" value
 * @method NO_TIPO_CONTRATO    setDescripcion()      Sets the current record's "descripcion" value
 * @method NO_TIPO_CONTRATO    setNOTIPNOVKA()       Sets the current record's "NO_TIP_NOV_KA" collection
 * @method NO_TIPO_CONTRATO    setNOTIPONOVVAC()     Sets the current record's "NO_TIPO_NOV_VAC" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_TIPO_CONTRATO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_TIPO_CONTRATO');
        $this->hasColumn('id_tipo_contrato', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $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('NO_TIP_NOV_KA', array(
             'local' => 'id_tipo_contrato',
             'foreign' => 'id_tipo_contrato'));

        $this->hasMany('NO_TIPO_NOV_VAC', array(
             'local' => 'id_tipo_contrato',
             'foreign' => 'id_tipo_contrato'));
    }
}