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

/**
 * BaseNO_CARGO_CONVOCATORIA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * 
 * @package    nomina
 * @subpackage model
 * @author     Manuel E Paredes Lopez
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_CARGO_CONVOCATORIA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_CARGO_CONVOCATORIA');
        $this->hasColumn('id_cargo_convocatoria', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_dp', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('no_opec', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_convocatoria', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_tipo_modalidad', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 1,
             'unsigned' => false,
             'default' => '1',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fecha_log', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuario_log', 'string', 50, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('id_nombramiento', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_novedad_personal', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_anu', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuario_anu', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('RH_DP', array(
             'local' => 'id_dp',
             'foreign' => 'id_dp'));
        $this->hasOne('NO_TIPO_MODALIDAD', array(
             'local' => 'id_tipo_modalidad',
             'foreign' => 'id_tipo_modalidad'));
        $this->hasOne('NO_NOMBRAMIENTO', array(
             'local' => 'id_nombramiento',
             'foreign' => 'id_nombramiento'));
        $this->hasOne('NO_NOVEDAD_PERSONAL', array(
             'local' => 'id_novedad_personal',
             'foreign' => 'id_novedad_personal'));
    }
}