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

/**
 * BaseConfQueueCalldisposition
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $dbid
 * @property integer $queue_fk
 * @property integer $disposition_fk
 * @property timestamp $created_at
 * @property timestamp $updated_at
 * @property ConfCallDisposition $ConfCallDisposition
 * @property ConfQueue $ConfQueue
 * 
 * @method integer                  getDbiD()                Returns the current record's "dbid" value
 * @method integer                  getQueue_fk()            Returns the current record's "queue_fk" value
 * @method integer                  getDisposition_fk()      Returns the current record's "disposition_fk" value
 * @method timestamp                getCreated_at()          Returns the current record's "created_at" value
 * @method timestamp                getUpdated_at()          Returns the current record's "updated_at" value
 * @method ConfCallDisposition      getConfCallDisposition() Returns the current record's "ConfCallDisposition" value
 * @method ConfQueue                getConfQueue()           Returns the current record's "ConfQueue" value
 * @method ConfQueueCalldisposition setDbiD()                Sets the current record's "dbid" value
 * @method ConfQueueCalldisposition setQueue_fk()            Sets the current record's "queue_fk" value
 * @method ConfQueueCalldisposition setDisposition_fk()      Sets the current record's "disposition_fk" value
 * @method ConfQueueCalldisposition setCreated_at()          Sets the current record's "created_at" value
 * @method ConfQueueCalldisposition setUpdated_at()          Sets the current record's "updated_at" value
 * @method ConfQueueCalldisposition setConfCallDisposition() Sets the current record's "ConfCallDisposition" value
 * @method ConfQueueCalldisposition setConfQueue()           Sets the current record's "ConfQueue" value
 * 
 * @package    foniva
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseConfQueueCalldisposition extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('conf_queue_calldisposition');
        $this->hasColumn('dbid', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'autoincrement' => true,
             'length' => 8,
             ));
        $this->hasColumn('queue_fk', 'integer', 4, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => false,
             'autoincrement' => false,
             'length' => 4,
             ));
        $this->hasColumn('disposition_fk', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => false,
             'autoincrement' => false,
             'length' => 8,
             ));
        $this->hasColumn('created_at', 'timestamp', 25, array(
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => false,
             'autoincrement' => false,
             'length' => 25,
             ));
        $this->hasColumn('updated_at', 'timestamp', 25, array(
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => false,
             'autoincrement' => false,
             'length' => 25,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('ConfCallDisposition', array(
             'local' => 'disposition_fk',
             'foreign' => 'dbid'));

        $this->hasOne('ConfQueue', array(
             'local' => 'queue_fk',
             'foreign' => 'dbid'));
    }
}