/** * Unbinds current reference of relation. * * @return $this */ public function unbind() { if ($this->referencingLeftToRight) { $this->predecessorEnd->bindOnSuccessor(null); } else { $this->successorEnd->bindOnPredecessor(null); } return $this; }