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

/**
 * BaseRH_SA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_sa
 * @property string $descripcion
 * @property Doctrine_Collection $RH_SA_H
 * 
 * @method integer             getIdSa()        Returns the current record's "id_sa" value
 * @method string              getDescripcion() Returns the current record's "descripcion" value
 * @method Doctrine_Collection getRHSAH()       Returns the current record's "RH_SA_H" collection
 * @method RH_SA               setIdSa()        Sets the current record's "id_sa" value
 * @method RH_SA               setDescripcion() Sets the current record's "descripcion" value
 * @method RH_SA               setRHSAH()       Sets the current record's "RH_SA_H" 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 extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_SA');
        $this->hasColumn('id_sa', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 300, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 300,
             ));
    }

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