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

/**
 * BaseUSUARIOS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_perfil
 * @property string $username
 * @property string $pass
 * @property integer $estado
 * @property integer $nitocc
 * @property integer $fk_username
 * @property timestamp $created_at
 * @property timestamp $update_at
 * @property PERFILES $PERFILES
 * 
 * @method integer   getId()          Returns the current record's "id" value
 * @method integer   getIdPerfil()    Returns the current record's "id_perfil" value
 * @method string    getUsername()    Returns the current record's "username" value
 * @method string    getPass()        Returns the current record's "pass" value
 * @method integer   getEstado()      Returns the current record's "estado" value
 * @method integer   getNitocc()      Returns the current record's "nitocc" value
 * @method integer   getFkUsername()  Returns the current record's "fk_username" value
 * @method timestamp getCreatedAt()   Returns the current record's "created_at" value
 * @method timestamp getUpdateAt()    Returns the current record's "update_at" value
 * @method PERFILES  getPERFILES()    Returns the current record's "PERFILES" value
 * @method USUARIOS  setId()          Sets the current record's "id" value
 * @method USUARIOS  setIdPerfil()    Sets the current record's "id_perfil" value
 * @method USUARIOS  setUsername()    Sets the current record's "username" value
 * @method USUARIOS  setPass()        Sets the current record's "pass" value
 * @method USUARIOS  setEstado()      Sets the current record's "estado" value
 * @method USUARIOS  setNitocc()      Sets the current record's "nitocc" value
 * @method USUARIOS  setFkUsername()  Sets the current record's "fk_username" value
 * @method USUARIOS  setCreatedAt()   Sets the current record's "created_at" value
 * @method USUARIOS  setUpdateAt()    Sets the current record's "update_at" value
 * @method USUARIOS  setPERFILES()    Sets the current record's "PERFILES" value
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseUSUARIOS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('USUARIOS');
        $this->hasColumn('id', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_perfil', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('username', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('pass', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('estado', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('nitocc', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fk_username', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('created_at', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('update_at', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

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