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

/**
 * BaseIN_USUARIO_CEN_OP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $username
 * @property integer $id_cen_op
 * @property integer $estado
 * @property CENTRO_OPERACION $CENTRO_OPERACION
 * 
 * @method string            getUsername()         Returns the current record's "username" value
 * @method integer           getIdCenOp()          Returns the current record's "id_cen_op" value
 * @method integer           getEstado()           Returns the current record's "estado" value
 * @method CENTRO_OPERACION  getCENTROOPERACION()  Returns the current record's "CENTRO_OPERACION" value
 * @method IN_USUARIO_CEN_OP setUsername()         Sets the current record's "username" value
 * @method IN_USUARIO_CEN_OP setIdCenOp()          Sets the current record's "id_cen_op" value
 * @method IN_USUARIO_CEN_OP setEstado()           Sets the current record's "estado" value
 * @method IN_USUARIO_CEN_OP setCENTROOPERACION()  Sets the current record's "CENTRO_OPERACION" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseIN_USUARIO_CEN_OP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_USUARIO_CEN_OP');
        $this->hasColumn('username', 'string', 20, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_cen_op', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1
                ',
             'primary' => false,
             'length' => 1,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('CENTRO_OPERACION', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));
    }
}