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

/**
 * BaseFIRMA_RP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $cargo
 * @property string $nombre
 * @property Doctrine_Collection $PR_RESOL_COMIS
 * 
 * @method integer             getId()             Returns the current record's "id" value
 * @method string              getCargo()          Returns the current record's "cargo" value
 * @method string              getNombre()         Returns the current record's "nombre" value
 * @method Doctrine_Collection getPRRESOLCOMIS()   Returns the current record's "PR_RESOL_COMIS" collection
 * @method FIRMA_RP            setId()             Sets the current record's "id" value
 * @method FIRMA_RP            setCargo()          Sets the current record's "cargo" value
 * @method FIRMA_RP            setNombre()         Sets the current record's "nombre" value
 * @method FIRMA_RP            setPRRESOLCOMIS()   Sets the current record's "PR_RESOL_COMIS" collection
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseFIRMA_RP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('FIRMA_RP');
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('cargo', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('nombre', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
    }

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