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

/**
 * BaseRH_SS_FON2
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_ss_fon2
 * @property integer $id_ss_fon
 * @property integer $id_con_nom
 * @property RH_NP_CON_NOM $RH_NP_CON_NOM
 * @property RH_SS_FON $RH_SS_FON
 * 
 * @method integer       getIdSsFon2()      Returns the current record's "id_ss_fon2" value
 * @method integer       getIdSsFon()       Returns the current record's "id_ss_fon" value
 * @method integer       getIdConNom()      Returns the current record's "id_con_nom" value
 * @method RH_NP_CON_NOM getRHNPCONNOM()    Returns the current record's "RH_NP_CON_NOM" value
 * @method RH_SS_FON     getRHSSFON()       Returns the current record's "RH_SS_FON" value
 * @method RH_SS_FON2    setIdSsFon2()      Sets the current record's "id_ss_fon2" value
 * @method RH_SS_FON2    setIdSsFon()       Sets the current record's "id_ss_fon" value
 * @method RH_SS_FON2    setIdConNom()      Sets the current record's "id_con_nom" value
 * @method RH_SS_FON2    setRHNPCONNOM()    Sets the current record's "RH_NP_CON_NOM" value
 * @method RH_SS_FON2    setRHSSFON()       Sets the current record's "RH_SS_FON" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_SS_FON2 extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_SS_FON2');
        $this->hasColumn('id_ss_fon2', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_ss_fon', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_con_nom', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('RH_SS_FON', array(
             'local' => 'id_ss_fon',
             'foreign' => 'id_ss_fon'));
    }
}