diff --git a/src/Skobkin/Bundle/PointToolsBundle/Repository/SubscriptionEventRepository.php b/src/Skobkin/Bundle/PointToolsBundle/Repository/SubscriptionEventRepository.php index f8760f0..c5d18d3 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Repository/SubscriptionEventRepository.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Repository/SubscriptionEventRepository.php @@ -9,6 +9,11 @@ use Skobkin\Bundle\PointToolsBundle\Entity\User; class SubscriptionEventRepository extends EntityRepository { + public function add(SubscriptionEvent $entity) + { + $this->getEntityManager()->persist($entity); + } + /** * @return int */ diff --git a/src/Skobkin/Bundle/PointToolsBundle/Repository/SubscriptionRepository.php b/src/Skobkin/Bundle/PointToolsBundle/Repository/SubscriptionRepository.php index 9d96948..41d47fd 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Repository/SubscriptionRepository.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Repository/SubscriptionRepository.php @@ -3,10 +3,16 @@ namespace Skobkin\Bundle\PointToolsBundle\Repository; use Doctrine\ORM\EntityRepository; +use Skobkin\Bundle\PointToolsBundle\Entity\Subscription; use Skobkin\Bundle\PointToolsBundle\Entity\User; class SubscriptionRepository extends EntityRepository { + public function add(Subscription $entity) + { + $this->getEntityManager()->persist($entity); + } + /** * @param int $id * diff --git a/src/Skobkin/Bundle/PointToolsBundle/Repository/UserRepository.php b/src/Skobkin/Bundle/PointToolsBundle/Repository/UserRepository.php index 7c60912..9a11bb4 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Repository/UserRepository.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Repository/UserRepository.php @@ -8,6 +8,11 @@ use Skobkin\Bundle\PointToolsBundle\Entity\User; class UserRepository extends EntityRepository { + public function add(User $entity) + { + $this->getEntityManager()->persist($entity); + } + /** * Case-insensitive user search *