protected function getArrayableRelations() { return $this->getArrayableItems($this->relations); }
/** * @return array */ protected function getArrayableRelations() { $result = parent::getArrayableRelations(); // To fix #17 when converting tree to json falling to infinite recursion. unset($result['parent']); return $result; }