Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 7 |
|
0.00% |
0 / 5 |
CRAP | |
0.00% |
0 / 1 |
| AdresseBenutzer | |
0.00% |
0 / 7 |
|
0.00% |
0 / 5 |
30 | |
0.00% |
0 / 1 |
| getAdressenlfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setAdressenlfdnr | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getBenutzerlfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setBenutzerlfdnr | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getLfdnr | |
0.00% |
0 / 1 |
|
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 | use Satag\AmicronEntityBundle\Traits\BlameableEntity; |
| 10 | use Satag\AmicronEntityBundle\Traits\BlameableEntityInterface; |
| 11 | |
| 12 | #[ORM\Entity] |
| 13 | #[ORM\Table(name: 'ADRESSENBENUTZERZUORD')] |
| 14 | #[ORM\Index(columns: ['adressenlfdnr'], name: 'ADRESSENBENUTZERZUORD_ALFDNR_FK')] |
| 15 | #[ORM\Index(columns: ['benutzerlfdnr'], name: 'ADRESSENBENUTZERZUORD_BLFDNR_FK')] |
| 16 | #[ORM\UniqueConstraint(name: 'ADRESSENBENUTZERZUORD_UK', columns: ['adressenlfdnr', 'benutzerlfdnr'])] |
| 17 | class AdresseBenutzer implements BlameableEntityInterface |
| 18 | { |
| 19 | use BlameableEntity; |
| 20 | |
| 21 | #[ORM\ManyToOne(targetEntity: Adresse::class)] |
| 22 | #[ORM\JoinColumn(name: 'adressenlfdnr', referencedColumnName: 'lfdnr')] |
| 23 | private ?Adresse $adressenlfdnr = null; |
| 24 | |
| 25 | #[ORM\ManyToOne(targetEntity: Benutzer::class)] |
| 26 | #[ORM\JoinColumn(name: 'benutzerlfdnr', referencedColumnName: 'lfdnr')] |
| 27 | private ?Benutzer $benutzerlfdnr = null; |
| 28 | |
| 29 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 30 | #[ORM\Id] |
| 31 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 32 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 33 | public private(set) ?int $lfdnr = null; |
| 34 | |
| 35 | public function getAdressenlfdnr(): ?Adresse |
| 36 | { |
| 37 | return $this->adressenlfdnr; |
| 38 | } |
| 39 | |
| 40 | public function setAdressenlfdnr(?Adresse $adressenlfdnr): self |
| 41 | { |
| 42 | $this->adressenlfdnr = $adressenlfdnr; |
| 43 | |
| 44 | return $this; |
| 45 | } |
| 46 | |
| 47 | public function getBenutzerlfdnr(): ?Benutzer |
| 48 | { |
| 49 | return $this->benutzerlfdnr; |
| 50 | } |
| 51 | |
| 52 | public function setBenutzerlfdnr(?Benutzer $benutzerlfdnr): self |
| 53 | { |
| 54 | $this->benutzerlfdnr = $benutzerlfdnr; |
| 55 | |
| 56 | return $this; |
| 57 | } |
| 58 | |
| 59 | public function getLfdnr(): ?int |
| 60 | { |
| 61 | return $this->lfdnr; |
| 62 | } |
| 63 | } |