feat(subscription): implement effective plan logic and update free plan features

This commit is contained in:
hamed
2026-07-05 10:46:31 +03:30
parent f3ca6d844f
commit 828e3552c0
10 changed files with 148 additions and 30 deletions
@@ -32,6 +32,14 @@ class SubscriptionPlanRepository extends ServiceEntityRepository
->getResult();
}
public function findAllForAdmin(): array
{
return $this->createQueryBuilder('p')
->orderBy('p.level', 'ASC')
->getQuery()
->getResult();
}
public function save(SubscriptionPlan $plan): void
{
$this->getEntityManager()->persist($plan);