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

/**
 * BasePR_TIPO_TRABA_CONTRA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_traba_contra
 * @property string $descripcion
 * @property integer $id_im
 * @property Doctrine_Collection $PR_PG
 * 
 * @method integer              getIdTipoTrabaContra()    Returns the current record's "id_tipo_traba_contra" value
 * @method string               getDescripcion()          Returns the current record's "descripcion" value
 * @method integer              getIdIm()                 Returns the current record's "id_im" value
 * @method Doctrine_Collection  getPRPG()                 Returns the current record's "PR_PG" collection
 * @method PR_TIPO_TRABA_CONTRA setIdTipoTrabaContra()    Sets the current record's "id_tipo_traba_contra" value
 * @method PR_TIPO_TRABA_CONTRA setDescripcion()          Sets the current record's "descripcion" value
 * @method PR_TIPO_TRABA_CONTRA setIdIm()                 Sets the current record's "id_im" value
 * @method PR_TIPO_TRABA_CONTRA setPRPG()                 Sets the current record's "PR_PG" collection
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_TIPO_TRABA_CONTRA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_TIPO_TRABA_CONTRA');
        $this->hasColumn('id_tipo_traba_contra', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_im', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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