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

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

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