Example #1
0
 /**
  * Get the workflow model.
  *
  * @param \DataContainer $dataContainer The data container driver.
  *
  * @return \Model|\Model\Collection
  *
  * @throws \Exception If relation could not be resolved.
  */
 protected function getWorkflowModel($dataContainer)
 {
     $transitionModel = TransitionModel::findByPk($dataContainer->activeRecord->pid);
     $workflowModel = $transitionModel->getRelated('pid');
     return $workflowModel;
 }