/** * Reset the embeds relations */ protected function resetEmbedsRelations() { $this->embeds = []; // Run through all refers-to relations and delete them foreach ($this->object->findRelations([Relation::TYPE => Relation::EMBEDS]) as $embedsRelation) { $this->object->deleteRelation($embedsRelation); } }