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

/**
 * BaseRH_SS_FON
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_ss_fon
 * @property integer $id_ss_cla
 * @property integer $id_mae_ter
 * @property string $codigo
 * @property integer $id_fon_cov
 * @property INTERCEROS $INTERCEROS
 * @property RH_SS_CLA_FON $RH_SS_CLA_FON
 * @property RH_SS_FON_COV $RH_SS_FON_COV
 * @property Doctrine_Collection $RH_SS_FON2
 * @property Doctrine_Collection $RH_SA_AFI_SS2
 * 
 * @method integer             getIdSsFon()       Returns the current record's "id_ss_fon" value
 * @method integer             getIdSsCla()       Returns the current record's "id_ss_cla" value
 * @method integer             getIdMaeTer()      Returns the current record's "id_mae_ter" value
 * @method string              getCodigo()        Returns the current record's "codigo" value
 * @method integer             getIdFonCov()      Returns the current record's "id_fon_cov" value
 * @method INTERCEROS          getINTERCEROS()    Returns the current record's "INTERCEROS" value
 * @method RH_SS_CLA_FON       getRHSSCLAFON()    Returns the current record's "RH_SS_CLA_FON" value
 * @method RH_SS_FON_COV       getRHSSFONCOV()    Returns the current record's "RH_SS_FON_COV" value
 * @method Doctrine_Collection getRHSSFON2()      Returns the current record's "RH_SS_FON2" collection
 * @method Doctrine_Collection getRHSAAFISS2()    Returns the current record's "RH_SA_AFI_SS2" collection
 * @method RH_SS_FON           setIdSsFon()       Sets the current record's "id_ss_fon" value
 * @method RH_SS_FON           setIdSsCla()       Sets the current record's "id_ss_cla" value
 * @method RH_SS_FON           setIdMaeTer()      Sets the current record's "id_mae_ter" value
 * @method RH_SS_FON           setCodigo()        Sets the current record's "codigo" value
 * @method RH_SS_FON           setIdFonCov()      Sets the current record's "id_fon_cov" value
 * @method RH_SS_FON           setINTERCEROS()    Sets the current record's "INTERCEROS" value
 * @method RH_SS_FON           setRHSSCLAFON()    Sets the current record's "RH_SS_CLA_FON" value
 * @method RH_SS_FON           setRHSSFONCOV()    Sets the current record's "RH_SS_FON_COV" value
 * @method RH_SS_FON           setRHSSFON2()      Sets the current record's "RH_SS_FON2" collection
 * @method RH_SS_FON           setRHSAAFISS2()    Sets the current record's "RH_SA_AFI_SS2" 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_SS_FON extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_SS_FON');
        $this->hasColumn('id_ss_fon', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_ss_cla', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('codigo', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_fon_cov', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('RH_SS_CLA_FON', array(
             'local' => 'id_ss_cla',
             'foreign' => 'id_ss_cla'));

        $this->hasOne('RH_SS_FON_COV', array(
             'local' => 'id_fon_cov',
             'foreign' => 'id_fon_cov'));

        $this->hasMany('RH_SS_FON2', array(
             'local' => 'id_ss_fon',
             'foreign' => 'id_ss_fon'));

        $this->hasMany('RH_SA_AFI_SS2', array(
             'local' => 'id_ss_fon',
             'foreign' => 'id_ss_fon'));
    }
}