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

/**
 * BaseRH_SA_TN
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_sa_tn
 * @property string $descripcion
 * @property integer $id_n_emp
 * @property string $titular
 * @property RH_AP_NATURALEZA_EM $RH_AP_NATURALEZA_EM
 * @property Doctrine_Collection $RH_SA_SL
 * @property Doctrine_Collection $RH_NP_TIP_NOV
 * 
 * @method integer             getIdSaTn()              Returns the current record's "id_sa_tn" value
 * @method string              getDescripcion()         Returns the current record's "descripcion" value
 * @method integer             getIdNEmp()              Returns the current record's "id_n_emp" value
 * @method string              getTitular()             Returns the current record's "titular" value
 * @method RH_AP_NATURALEZA_EM getRHAPNATURALEZAEM()    Returns the current record's "RH_AP_NATURALEZA_EM" value
 * @method Doctrine_Collection getRHSASL()              Returns the current record's "RH_SA_SL" collection
 * @method Doctrine_Collection getRHNPTIPNOV()          Returns the current record's "RH_NP_TIP_NOV" collection
 * @method RH_SA_TN            setIdSaTn()              Sets the current record's "id_sa_tn" value
 * @method RH_SA_TN            setDescripcion()         Sets the current record's "descripcion" value
 * @method RH_SA_TN            setIdNEmp()              Sets the current record's "id_n_emp" value
 * @method RH_SA_TN            setTitular()             Sets the current record's "titular" value
 * @method RH_SA_TN            setRHAPNATURALEZAEM()    Sets the current record's "RH_AP_NATURALEZA_EM" value
 * @method RH_SA_TN            setRHSASL()              Sets the current record's "RH_SA_SL" collection
 * @method RH_SA_TN            setRHNPTIPNOV()          Sets the current record's "RH_NP_TIP_NOV" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_SA_TN extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_SA_TN');
        $this->hasColumn('id_sa_tn', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('id_n_emp', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('titular', 'string', 1, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasMany('RH_SA_SL', array(
             'local' => 'id_sa_tn',
             'foreign' => 'id_tn'));

        $this->hasMany('RH_NP_TIP_NOV', array(
             'local' => 'id_sa_tn',
             'foreign' => 'id_sa_tn'));
    }
}