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

/**
 * BaseCN_TIPO_RETENCION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_retencion
 * @property string $nombre
 * @property string $nom_corto
 * @property Doctrine_Collection $CN_CATALOGO
 * 
 * @method integer             getIdTipoRetencion()   Returns the current record's "id_tipo_retencion" value
 * @method string              getNombre()            Returns the current record's "nombre" value
 * @method string              getNomCorto()          Returns the current record's "nom_corto" value
 * @method Doctrine_Collection getCNCATALOGO()        Returns the current record's "CN_CATALOGO" collection
 * @method CN_TIPO_RETENCION   setIdTipoRetencion()   Sets the current record's "id_tipo_retencion" value
 * @method CN_TIPO_RETENCION   setNombre()            Sets the current record's "nombre" value
 * @method CN_TIPO_RETENCION   setNomCorto()          Sets the current record's "nom_corto" value
 * @method CN_TIPO_RETENCION   setCNCATALOGO()        Sets the current record's "CN_CATALOGO" collection
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCN_TIPO_RETENCION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CN_TIPO_RETENCION');
        $this->hasColumn('id_tipo_retencion', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('nombre', 'string', 128, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
        $this->hasColumn('nom_corto', 'string', 32, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 32,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('CN_CATALOGO', array(
             'local' => 'id_tipo_retencion',
             'foreign' => 'id_tipo_retencion'));
    }
}