/** * {@inheritdoc} */ public function removeInventoryUnit(InventoryUnitInterface $unit) { $unit->setOrderItem(null); $this->inventoryUnits->removeElement($unit); return $this; }