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

/**
 * BaseCO_CATEGORIA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCO_CATEGORIA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_CATEGORIA');
        $this->hasColumn('id_categoria', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_anhos', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('sueldo', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 150, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
        
    }

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