<?php

/**
 * BaseWorkflowStateMachine
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $workflow
 * @property string $state
 * @property string $role
 * @property string $action
 * @property string $resultingState
 * @property clob $roles_to_notify
 * @property int $priority
 * 
 * @method integer              getId()              Returns the current record's "id" value
 * @method string               getWorkflow()        Returns the current record's "workflow" value
 * @method string               getState()           Returns the current record's "state" value
 * @method string               getRole()            Returns the current record's "role" value
 * @method string               getAction()          Returns the current record's "action" value
 * @method string               getResultingState()  Returns the current record's "resultingState" value
 * @method clob                 getRolesToNotify()   Returns the current record's "roles_to_notify" value
 * @method int                  getPriority()        Returns the current record's "priority" value
 * @method WorkflowStateMachine setId()              Sets the current record's "id" value
 * @method WorkflowStateMachine setWorkflow()        Sets the current record's "workflow" value
 * @method WorkflowStateMachine setState()           Sets the current record's "state" value
 * @method WorkflowStateMachine setRole()            Sets the current record's "role" value
 * @method WorkflowStateMachine setAction()          Sets the current record's "action" value
 * @method WorkflowStateMachine setResultingState()  Sets the current record's "resultingState" value
 * @method WorkflowStateMachine setRolesToNotify()   Sets the current record's "roles_to_notify" value
 * @method WorkflowStateMachine setPriority()        Sets the current record's "priority" value
 * 
 * @package    orangehrm
 * @subpackage model\core\base
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseWorkflowStateMachine extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_workflow_state_machine');
        $this->hasColumn('id', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             ));
        $this->hasColumn('workflow', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 255,
             ));
        $this->hasColumn('state', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 255,
             ));
        $this->hasColumn('role', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 255,
             ));
        $this->hasColumn('action', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 255,
             ));
        $this->hasColumn('resulting_state as resultingState', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 255,
             ));
        $this->hasColumn('roles_to_notify', 'clob', null, array(
             'type' => 'clob',
             'notnull' => false,
             ));
        $this->hasColumn('priority', 'int', null, array(
             'type' => 'int',
             ));
    }

    public function setUp()
    {
        parent::setUp();
        
    }
}