feat(subscription): implement effective plan logic and update free plan features
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user