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

/**
 * BaseRH_NP_POL_CAL
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_pol_cal
 * @property integer $id_con_nom
 * @property RH_NP_CON_NOM $RH_NP_CON_NOM
 * @property Doctrine_Collection $RH_NP_CON_CAL
 * 
 * @method integer             getIdPolCal()      Returns the current record's "id_pol_cal" 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 Doctrine_Collection getRHNPCONCAL()    Returns the current record's "RH_NP_CON_CAL" collection
 * @method RH_NP_POL_CAL       setIdPolCal()      Sets the current record's "id_pol_cal" value
 * @method RH_NP_POL_CAL       setIdConNom()      Sets the current record's "id_con_nom" value
 * @method RH_NP_POL_CAL       setRHNPCONNOM()    Sets the current record's "RH_NP_CON_NOM" value
 * @method RH_NP_POL_CAL       setRHNPCONCAL()    Sets the current record's "RH_NP_CON_CAL" 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_NP_POL_CAL extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_NP_POL_CAL');
        $this->hasColumn('id_pol_cal', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_con_nom', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasMany('RH_NP_CON_CAL', array(
             'local' => 'id_pol_cal',
             'foreign' => 'id_pol_cal'));
    }
}