public function isActivated(Community $community) : bool { return $community->getFeatures()->hasFeature($this->getCode()); }
public function deactivateFeature(Community $community, string $featureCode) { $community->getFeatures()->excludeFeature($featureCode); $this->getEntityManager()->flush([$community]); }