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

/**
 * BasePERFILES
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $descripcion
 * @property integer $username
 * @property timestamp $created_at
 * @property integer $update_at
 * @property integer $estado
 * @property Doctrine_Collection $USUARIOS
 * @property Doctrine_Collection $PERFILES_CREDENCIALES
 * 
 * @method integer             getId()                    Returns the current record's "id" value
 * @method string              getDescripcion()           Returns the current record's "descripcion" value
 * @method integer             getUsername()              Returns the current record's "username" value
 * @method timestamp           getCreatedAt()             Returns the current record's "created_at" value
 * @method integer             getUpdateAt()              Returns the current record's "update_at" value
 * @method integer             getEstado()                Returns the current record's "estado" value
 * @method Doctrine_Collection getUSUARIOS()              Returns the current record's "USUARIOS" collection
 * @method Doctrine_Collection getPERFILESCREDENCIALES()  Returns the current record's "PERFILES_CREDENCIALES" collection
 * @method PERFILES            setId()                    Sets the current record's "id" value
 * @method PERFILES            setDescripcion()           Sets the current record's "descripcion" value
 * @method PERFILES            setUsername()              Sets the current record's "username" value
 * @method PERFILES            setCreatedAt()             Sets the current record's "created_at" value
 * @method PERFILES            setUpdateAt()              Sets the current record's "update_at" value
 * @method PERFILES            setEstado()                Sets the current record's "estado" value
 * @method PERFILES            setUSUARIOS()              Sets the current record's "USUARIOS" collection
 * @method PERFILES            setPERFILESCREDENCIALES()  Sets the current record's "PERFILES_CREDENCIALES" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePERFILES extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PERFILES');
        $this->hasColumn('id', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $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', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('estado', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1
                ',
             'primary' => false,
             'length' => 8,
             ));
    }

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

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