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

/**
 * BaseRH_MF_MF
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_den_emp
 * @property string $proposito_p
 * @property integer $id_norma
 * @property integer $id
 * @property string $observacion
 * @property timestamp $fecha_i
 * @property timestamp $fecha_f
 * @property RH_AP_DEN_EMP $RH_AP_DEN_EMP
 * @property Doctrine_Collection $RH_DP
 * @property Doctrine_Collection $RH_MF_CB
 * @property Doctrine_Collection $RH_MF_CI
 * @property Doctrine_Collection $RH_MF_CL
 * @property Doctrine_Collection $RH_MF_FE
 * 
 * @method integer             getIdDenEmp()      Returns the current record's "id_den_emp" value
 * @method string              getPropositoP()    Returns the current record's "proposito_p" value
 * @method integer             getIdNorma()       Returns the current record's "id_norma" value
 * @method integer             getId()            Returns the current record's "id" value
 * @method string              getObservacion()   Returns the current record's "observacion" value
 * @method timestamp           getFechaI()        Returns the current record's "fecha_i" value
 * @method timestamp           getFechaF()        Returns the current record's "fecha_f" value
 * @method RH_AP_DEN_EMP       getRHAPDENEMP()    Returns the current record's "RH_AP_DEN_EMP" value
 * @method Doctrine_Collection getRHDP()          Returns the current record's "RH_DP" collection
 * @method Doctrine_Collection getRHMFCB()        Returns the current record's "RH_MF_CB" collection
 * @method Doctrine_Collection getRHMFCI()        Returns the current record's "RH_MF_CI" collection
 * @method Doctrine_Collection getRHMFCL()        Returns the current record's "RH_MF_CL" collection
 * @method Doctrine_Collection getRHMFFE()        Returns the current record's "RH_MF_FE" collection
 * @method RH_MF_MF            setIdDenEmp()      Sets the current record's "id_den_emp" value
 * @method RH_MF_MF            setPropositoP()    Sets the current record's "proposito_p" value
 * @method RH_MF_MF            setIdNorma()       Sets the current record's "id_norma" value
 * @method RH_MF_MF            setId()            Sets the current record's "id" value
 * @method RH_MF_MF            setObservacion()   Sets the current record's "observacion" value
 * @method RH_MF_MF            setFechaI()        Sets the current record's "fecha_i" value
 * @method RH_MF_MF            setFechaF()        Sets the current record's "fecha_f" value
 * @method RH_MF_MF            setRHAPDENEMP()    Sets the current record's "RH_AP_DEN_EMP" value
 * @method RH_MF_MF            setRHDP()          Sets the current record's "RH_DP" collection
 * @method RH_MF_MF            setRHMFCB()        Sets the current record's "RH_MF_CB" collection
 * @method RH_MF_MF            setRHMFCI()        Sets the current record's "RH_MF_CI" collection
 * @method RH_MF_MF            setRHMFCL()        Sets the current record's "RH_MF_CL" collection
 * @method RH_MF_MF            setRHMFFE()        Sets the current record's "RH_MF_FE" collection
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_MF_MF extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_MF_MF');
        $this->hasColumn('id_den_emp', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('proposito_p', 'string', 300, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 300,
             ));
        $this->hasColumn('id_norma', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('observacion', 'string', 300, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 300,
             ));
        $this->hasColumn('fecha_i', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_f', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

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

        $this->hasMany('RH_DP', array(
             'local' => 'id',
             'foreign' => 'id_mf'));

        $this->hasMany('RH_MF_CB', array(
             'local' => 'id',
             'foreign' => 'id_mf'));

        $this->hasMany('RH_MF_CI', array(
             'local' => 'id',
             'foreign' => 'id_mf'));

        $this->hasMany('RH_MF_CL', array(
             'local' => 'id',
             'foreign' => 'id_mf'));

        $this->hasMany('RH_MF_FE', array(
             'local' => 'id',
             'foreign' => 'id_mf'));
    }
}