/** * In addition to set this item deleted, set all properties to deleted. * * They will be automatically deleted by the backend, but the user might * still have a reference to one of the property objects. * * @private */ public function setDeleted() { parent::setDeleted(); foreach ($this->properties as $property) { $property->setDeleted(); // not all properties are tracked in objectmanager } }