Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 7 |
|
0.00% |
0 / 5 |
CRAP | |
0.00% |
0 / 1 |
| Emailssuchzuord | |
0.00% |
0 / 7 |
|
0.00% |
0 / 5 |
30 | |
0.00% |
0 / 1 |
| getEmailslfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setEmailslfdnr | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getLfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getSuchschluessellfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setSuchschluessellfdnr | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Satag\AmicronEntityBundle\Entity; |
| 6 | |
| 7 | use Doctrine\DBAL\Types\Types; |
| 8 | use Doctrine\ORM\Mapping as ORM; |
| 9 | |
| 10 | #[ORM\Entity] |
| 11 | #[ORM\Table(name: 'EMAILSSUCHZUORD')] |
| 12 | #[ORM\Index(columns: ['emailslfdnr'], name: 'EMAILSSUCHZUORD_EMAILS_FK')] |
| 13 | #[ORM\Index(columns: ['suchschluessellfdnr'], name: 'EMAILSSUCHZUORD_SUCHSCHLUESS_FK')] |
| 14 | #[ORM\UniqueConstraint(name: 'EMAILSSUCHZUORD_UK', columns: ['suchschluessellfdnr', 'emailslfdnr'])] |
| 15 | class Emailssuchzuord |
| 16 | { |
| 17 | #[ORM\ManyToOne(targetEntity: Email::class)] |
| 18 | #[ORM\JoinColumn(name: 'emailslfdnr', referencedColumnName: 'lfdnr')] |
| 19 | private ?Email $emailslfdnr = null; |
| 20 | |
| 21 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 22 | #[ORM\Id] |
| 23 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 24 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 25 | public private(set) ?int $lfdnr = null; |
| 26 | |
| 27 | #[ORM\ManyToOne(targetEntity: Suchschluessel::class)] |
| 28 | #[ORM\JoinColumn(name: 'suchschluessellfdnr', referencedColumnName: 'lfdnr')] |
| 29 | private ?Suchschluessel $suchschluessellfdnr = null; |
| 30 | |
| 31 | public function getEmailslfdnr(): ?Email |
| 32 | { |
| 33 | return $this->emailslfdnr; |
| 34 | } |
| 35 | |
| 36 | public function setEmailslfdnr(?Email $emailslfdnr): self |
| 37 | { |
| 38 | $this->emailslfdnr = $emailslfdnr; |
| 39 | |
| 40 | return $this; |
| 41 | } |
| 42 | |
| 43 | public function getLfdnr(): ?int |
| 44 | { |
| 45 | return $this->lfdnr; |
| 46 | } |
| 47 | |
| 48 | public function getSuchschluessellfdnr(): ?Suchschluessel |
| 49 | { |
| 50 | return $this->suchschluessellfdnr; |
| 51 | } |
| 52 | |
| 53 | public function setSuchschluessellfdnr(?Suchschluessel $suchschluessellfdnr): self |
| 54 | { |
| 55 | $this->suchschluessellfdnr = $suchschluessellfdnr; |
| 56 | |
| 57 | return $this; |
| 58 | } |
| 59 | } |