コード例 #1
0
 public function bindingFlow($flow_id)
 {
     $resFlows = WorkFlowResourceflow::where('flow_id', '=', $flow_id)->where('resource_id', '=', $this->id)->get();
     if (!$resFlows || $resFlows->count() <= 0) {
         $resFlow = new WorkFlowResourceflow();
         $resFlow->flow_id = $flow_id;
         $resFlow->resource_type = WorkFlowFlow::find($flow_id)->resource_type;
         $resFlow->resource_id = $this->id;
         $resFlow->save();
     }
 }
コード例 #2
0
 public function setUp()
 {
     WorkFlowResourceflow::$app = $this->mockApp();
     $this->testingModel = new TestingModel();
 }