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

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

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