collection->findOne(['name' => $tokenName]); return $this->entityConverter->toEntity($arrayEntity); } public function deleteByName($tokenName) { $this->collection->remove(['name' => $tokenName]); } }