Skip to content
Browse files

Using configured datasource for model workflow insted of hardcoded one

  • Loading branch information...
1 parent 7bcfe64 commit 3658782712d2936204b6bfc3fe9b508667fc4547 @lorenzo committed Nov 3, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 models/workflow_workflow.php
View
4 models/workflow_workflow.php
@@ -2,7 +2,7 @@
class WorkflowWorkflow extends WorkflowAppModel Implements ezcWorkflowDefinitionStorage {
var $name = 'WorkflowWorkflow';
var $displayField = 'name';
- //The Associations below have been created with all possible keys, those that are not needed can be removed
+
var $hasMany = array(
'Node' => array(
'className' => 'Workflow.WorkflowNode',
@@ -23,7 +23,7 @@ function save(ezcWorkflow $workflow) {
$workflow->verify();
$version = $this->currentVersion($workflow->name) + 1;
- $db = ConnectionManager::getDataSource('default');
+ $db = $this->getDataSource();
$db->begin($this);
$data = array();

0 comments on commit 3658782

Please sign in to comment.
Something went wrong with that request. Please try again.