<?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_mf_mf
 * @property integer $id
 * @property string $observacion
 * @property timestamp $fecha_i
 * @property timestamp $fecha_f
 * @property integer $id_cia
 * @property string $id_cen_op
 * @property NORMAS $NORMAS
 * @property RH_AP_DEN_EMP $RH_AP_DEN_EMP
 * @property Doctrine_Collection $RH_DP
 * 
 * @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             getIdMfMf()        Returns the current record's "id_mf_mf" 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 integer             getIdCia()         Returns the current record's "id_cia" value
 * @method string              getIdCenOp()       Returns the current record's "id_cen_op" value
 * @method NORMAS              getNORMAS()        Returns the current record's "NORMAS" 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 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            setIdMfMf()        Sets the current record's "id_mf_mf" 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            setIdCia()         Sets the current record's "id_cia" value
 * @method RH_MF_MF            setIdCenOp()       Sets the current record's "id_cen_op" value
 * @method RH_MF_MF            setNORMAS()        Sets the current record's "NORMAS" 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
 * 
 * @package    nomina
 * @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_mf_mf', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $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,
             ));
        $this->hasColumn('id_cia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_cen_op', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('RH_AP_DEN_EMP', array(
             'local' => 'id_den_emp',
             'foreign' => 'id_den_emp'));

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