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

/**
 * BaseRH_NP_TIP_CON
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tip_con
 * @property string $descripcion
 * @property integer $codigo
 * @property integer $operador
 * @property Doctrine_Collection $RH_NP_CON_NOM
 * 
 * @method integer             getIdTipCon()      Returns the current record's "id_tip_con" value
 * @method string              getDescripcion()   Returns the current record's "descripcion" value
 * @method integer             getCodigo()        Returns the current record's "codigo" value
 * @method integer             getOperador()      Returns the current record's "operador" value
 * @method Doctrine_Collection getRHNPCONNOM()    Returns the current record's "RH_NP_CON_NOM" collection
 * @method RH_NP_TIP_CON       setIdTipCon()      Sets the current record's "id_tip_con" value
 * @method RH_NP_TIP_CON       setDescripcion()   Sets the current record's "descripcion" value
 * @method RH_NP_TIP_CON       setCodigo()        Sets the current record's "codigo" value
 * @method RH_NP_TIP_CON       setOperador()      Sets the current record's "operador" value
 * @method RH_NP_TIP_CON       setRHNPCONNOM()    Sets the current record's "RH_NP_CON_NOM" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_NP_TIP_CON extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_NP_TIP_CON');
        $this->hasColumn('id_tip_con', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('codigo', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('operador', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
    }

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