protected function removeItem($item)
{
$this->db->getCollection($this->assignmentCollection)->remove(['item_name' => $item->name]);
$this->db->getCollection($this->itemCollection)->remove(['name' => $item->name]);
$this->db->getCollection($this->itemCollection)->update(['parents' => ['$in' => [$item->name]]], ['$pull' => ['parents' => ['$in' => [$item->name]]]], ['multi' => true]);
$this->invalidateCache();
return true;
}