Skip to content

Commit 4f80d1d

Browse files
Merge pull request #13 from FVSoftwareDeveloper/master
fix issue calling Smtp table
2 parents 31b60ec + dc235db commit 4f80d1d

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

Entity/Smtp.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
*/
1313

1414
#[ORM\Table(name: 'nti_smtp_configuration')]
15+
#[ORM\Entity(repositoryClass: 'NTI\EmailBundle\Repository\SmtpRepository')]
1516
#[ORM\HasLifecycleCallbacks()]
1617
class Smtp {
1718

Repository/SmtpRepository.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace NTI\EmailBundle\Repository;
4+
5+
6+
use Doctrine\Persistence\ManagerRegistry;
7+
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
8+
use NTI\EmailBundle\Entity\Smtp;
9+
10+
/**
11+
* EmailRepository
12+
*
13+
* This class was generated by the Doctrine ORM. Add your own custom
14+
* repository methods below.
15+
*/
16+
class SmtpRepository extends ServiceEntityRepository
17+
{
18+
public function __construct(ManagerRegistry $registry)
19+
{
20+
parent::__construct($registry, Smtp::class);
21+
}
22+
}

0 commit comments

Comments
 (0)