Ejemplo n.º 1
0
 public static function applyPendingThreadRelationship($pendingRelationship, $thread)
 {
     if ($pendingRelationship['relationship'] == 'thread_parent') {
         $childThread = Threads::withID($pendingRelationship['thread']);
         $childThread->setSuperthread($thread);
         $childThread->save();
         $thread->save();
     }
 }