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

/**
 * BaseNO_CENTRO_TRABAJO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_centro_trabajo
 * @property string $codigo
 * @property string $descripcion
 * @property Doctrine_Collection $NO_AFILIA_FONDO
 * 
 * @method integer             getIdCentroTrabajo()   Returns the current record's "id_centro_trabajo" value
 * @method string              getCodigo()            Returns the current record's "codigo" value
 * @method string              getDescripcion()       Returns the current record's "descripcion" value
 * @method Doctrine_Collection getNOAFILIAFONDO()     Returns the current record's "NO_AFILIA_FONDO" collection
 * @method NO_CENTRO_TRABAJO   setIdCentroTrabajo()   Sets the current record's "id_centro_trabajo" value
 * @method NO_CENTRO_TRABAJO   setCodigo()            Sets the current record's "codigo" value
 * @method NO_CENTRO_TRABAJO   setDescripcion()       Sets the current record's "descripcion" value
 * @method NO_CENTRO_TRABAJO   setNOAFILIAFONDO()     Sets the current record's "NO_AFILIA_FONDO" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_CENTRO_TRABAJO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_CENTRO_TRABAJO');
        $this->hasColumn('id_centro_trabajo', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('codigo', 'string', 9, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 9,
             ));
        $this->hasColumn('descripcion', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
    }

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