Replaced function call getallConnected events function with getEntitiesForParent...