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

/**
 * BaseNO_CLASE_PLANTA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_clase_planta
 * @property string $codigo
 * @property string $descripcion
 * @property Doctrine_Collection $NO_ANUL_NOMBRAMIENTO
 * 
 * @method integer             getIdClasePlanta()        Returns the current record's "id_clase_planta" value
 * @method string              getCodigo()               Returns the current record's "codigo" value
 * @method string              getDescripcion()          Returns the current record's "descripcion" value
 * @method Doctrine_Collection getNOANULNOMBRAMIENTO()   Returns the current record's "NO_ANUL_NOMBRAMIENTO" collection
 * @method NO_CLASE_PLANTA     setIdClasePlanta()        Sets the current record's "id_clase_planta" value
 * @method NO_CLASE_PLANTA     setCodigo()               Sets the current record's "codigo" value
 * @method NO_CLASE_PLANTA     setDescripcion()          Sets the current record's "descripcion" value
 * @method NO_CLASE_PLANTA     setNOANULNOMBRAMIENTO()   Sets the current record's "NO_ANUL_NOMBRAMIENTO" 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_CLASE_PLANTA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_CLASE_PLANTA');
        $this->hasColumn('id_clase_planta', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
    }

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