query = $query; } public function getOneByDevAlias(string $devAlias): ?MerchantInterface { $query = $this->query->create(); $query->filterByDevAlias($devAlias); return $query->findOne(); } }