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

/**
 * BaseRH_CL_CA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_cl_ca
 * @property integer $codigo
 * @property string $conducta
 * @property integer $id_rh_cl
 * @property RH_CL $RH_CL
 * 
 * @method integer  getIdClCa()   Returns the current record's "id_cl_ca" value
 * @method integer  getCodigo()   Returns the current record's "codigo" value
 * @method string   getConducta() Returns the current record's "conducta" value
 * @method integer  getIdRhCl()   Returns the current record's "id_rh_cl" value
 * @method RH_CL    getRHCL()     Returns the current record's "RH_CL" value
 * @method RH_CL_CA setIdClCa()   Sets the current record's "id_cl_ca" value
 * @method RH_CL_CA setCodigo()   Sets the current record's "codigo" value
 * @method RH_CL_CA setConducta() Sets the current record's "conducta" value
 * @method RH_CL_CA setIdRhCl()   Sets the current record's "id_rh_cl" value
 * @method RH_CL_CA setRHCL()     Sets the current record's "RH_CL" 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_CL_CA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_CL_CA');
        $this->hasColumn('id_cl_ca', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'integer', 4, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('conducta', 'string', 2000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2000,
             ));
        $this->hasColumn('id_rh_cl', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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