<?php

/**
 * BaseAuthProviderExtraDetails
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int                       $id                                    Type: integer(4), primary key
 * @property int                       $provider_id                           Type: integer
 * @property int                       $provider_type                         Type: integer
 * @property string                    $client_id                             Type: string(2000)
 * @property string                    $client_secret                         Type: string(2000)
 * @property string                    $developer_key                         Type: string(2000)
 * @property OpenidProvider            $OpenidProvider                        
 *  
 * @method int                         getId()                                Type: integer(4), primary key
 * @method int                         getProviderId()                        Type: integer
 * @method int                         getProviderType()                      Type: integer
 * @method string                      getClientId()                          Type: string(2000)
 * @method string                      getClientSecret()                      Type: string(2000)
 * @method string                      getDeveloperKey()                      Type: string(2000)
 * @method OpenidProvider              getOpenidProvider()                    
 *  
 * @method AuthProviderExtraDetails    setId(int $val)                        Type: integer(4), primary key
 * @method AuthProviderExtraDetails    setProviderId(int $val)                Type: integer
 * @method AuthProviderExtraDetails    setProviderType(int $val)              Type: integer
 * @method AuthProviderExtraDetails    setClientId(string $val)               Type: string(2000)
 * @method AuthProviderExtraDetails    setClientSecret(string $val)           Type: string(2000)
 * @method AuthProviderExtraDetails    setDeveloperKey(string $val)           Type: string(2000)
 * @method AuthProviderExtraDetails    setOpenidProvider(OpenidProvider $val) 
 *  
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseAuthProviderExtraDetails extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_auth_provider_extra_details');
        $this->hasColumn('id', 'integer', 4, array(
             'type' => 'integer',
             'primary' => true,
             'autoincrement' => true,
             'length' => 4,
             ));
        $this->hasColumn('provider_id', 'integer', null, array(
             'type' => 'integer',
             ));
        $this->hasColumn('provider_type', 'integer', null, array(
             'type' => 'integer',
             ));
        $this->hasColumn('client_id', 'string', 2000, array(
             'type' => 'string',
             'length' => 2000,
             ));
        $this->hasColumn('client_secret', 'string', 2000, array(
             'type' => 'string',
             'length' => 2000,
             ));
        $this->hasColumn('developer_key', 'string', 2000, array(
             'type' => 'string',
             'length' => 2000,
             ));
    }

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