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

/**
 * BaseRH_NP_CON_CAL
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_con_cal
 * @property integer $id_pol_cal
 * @property string $descripcion
 * @property string $accion
 * @property RH_NP_POL_CAL $RH_NP_POL_CAL
 * 
 * @method integer       getIdConCal()      Returns the current record's "id_con_cal" value
 * @method integer       getIdPolCal()      Returns the current record's "id_pol_cal" value
 * @method string        getDescripcion()   Returns the current record's "descripcion" value
 * @method string        getAccion()        Returns the current record's "accion" value
 * @method RH_NP_POL_CAL getRHNPPOLCAL()    Returns the current record's "RH_NP_POL_CAL" value
 * @method RH_NP_CON_CAL setIdConCal()      Sets the current record's "id_con_cal" value
 * @method RH_NP_CON_CAL setIdPolCal()      Sets the current record's "id_pol_cal" value
 * @method RH_NP_CON_CAL setDescripcion()   Sets the current record's "descripcion" value
 * @method RH_NP_CON_CAL setAccion()        Sets the current record's "accion" value
 * @method RH_NP_CON_CAL setRHNPPOLCAL()    Sets the current record's "RH_NP_POL_CAL" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_NP_CON_CAL extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_NP_CON_CAL');
        $this->hasColumn('id_con_cal', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_pol_cal', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 600, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 600,
             ));
        $this->hasColumn('accion', 'string', 600, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 600,
             ));
    }

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