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

/**
 * BasePERFILES_CREDENCIALES
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_perfil
 * @property integer $id_credencial
 * @property integer $username
 * @property timestamp $created_at
 * @property timestamp $update_at
 * @property integer $estado
 * @property CREDENCIALES $CREDENCIALES
 * @property PERFILES $PERFILES
 * 
 * @method integer               getIdPerfil()      Returns the current record's "id_perfil" value
 * @method integer               getIdCredencial()  Returns the current record's "id_credencial" value
 * @method integer               getUsername()      Returns the current record's "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 integer               getEstado()        Returns the current record's "estado" value
 * @method CREDENCIALES          getCREDENCIALES()  Returns the current record's "CREDENCIALES" value
 * @method PERFILES              getPERFILES()      Returns the current record's "PERFILES" value
 * @method PERFILES_CREDENCIALES setIdPerfil()      Sets the current record's "id_perfil" value
 * @method PERFILES_CREDENCIALES setIdCredencial()  Sets the current record's "id_credencial" value
 * @method PERFILES_CREDENCIALES setUsername()      Sets the current record's "username" value
 * @method PERFILES_CREDENCIALES setCreatedAt()     Sets the current record's "created_at" value
 * @method PERFILES_CREDENCIALES setUpdateAt()      Sets the current record's "update_at" value
 * @method PERFILES_CREDENCIALES setEstado()        Sets the current record's "estado" value
 * @method PERFILES_CREDENCIALES setCREDENCIALES()  Sets the current record's "CREDENCIALES" value
 * @method PERFILES_CREDENCIALES 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 BasePERFILES_CREDENCIALES extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PERFILES_CREDENCIALES');
        $this->hasColumn('id_perfil', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_credencial', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('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,
             ));
        $this->hasColumn('estado', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1
                ',
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('PERFILES', array(
             'local' => 'id_perfil',
             'foreign' => 'id'));
    }
}