Skip to content

Commit

Permalink
fix: remove extra code
Browse files Browse the repository at this point in the history
  • Loading branch information
fox-john committed Mar 27, 2023
1 parent c7ca9e7 commit dd09d1d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/Entity/PsgdprConsent.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
/**
* @ORM\Table()
* @ORM\Entity(repositoryClass="PrestaShop\Module\Psgdpr\Repository\ConsentRepository")
* @ORM\HasLifecycleCallbacks()
*/
class PsgdprConsent
{
Expand Down
1 change: 0 additions & 1 deletion src/Entity/PsgdprLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
/**
* @ORM\Table()
* @ORM\Entity(repositoryClass="PrestaShop\Module\Psgdpr\Repository\LoggerRepository")
* @ORM\HasLifecycleCallbacks()
*/
class PsgdprLog
{
Expand Down
3 changes: 1 addition & 2 deletions src/Repository/ConsentLangRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
use PrestaShop\Module\Psgdpr\Entity\PsgdprConsentLang;

/**
* ConsentLangRepository.
Expand All @@ -39,7 +38,7 @@
class ConsentLangRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
parent::__construct($registry, PsgdprConsentLang::class);
{
parent::__construct($registry, PsgdprLog::class);
}
}
4 changes: 1 addition & 3 deletions src/Repository/LoggerRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,10 @@ public function __construct(ManagerRegistry $registry)
*
* @return void
*/
public function add(PsgdprLog $log): void
public function add(PsgdprLog $log)
{
$this->getEntityManager()->persist($log);
$this->getEntityManager()->flush();

return true;
}

/**
Expand Down

0 comments on commit dd09d1d

Please sign in to comment.