| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | #[ORM\Table(name: 'c_blog_rel_user')] |
||
| 14 | #[ORM\Entity] |
||
| 15 | class CBlogRelUser |
||
| 16 | { |
||
| 17 | use UserTrait; |
||
| 18 | |||
| 19 | #[ORM\Column(name: 'iid', type: 'integer')] |
||
| 20 | #[ORM\Id] |
||
| 21 | #[ORM\GeneratedValue] |
||
| 22 | protected ?int $iid = null; |
||
| 23 | |||
| 24 | #[ORM\ManyToOne(targetEntity: CBlog::class)] |
||
| 25 | #[ORM\JoinColumn(name: 'blog_id', referencedColumnName: 'iid', onDelete: 'CASCADE')] |
||
| 26 | protected ?CBlog $blog = null; |
||
| 27 | |||
| 28 | #[ORM\ManyToOne(targetEntity: User::class)] |
||
| 29 | #[ORM\JoinColumn(name: 'user_id', referencedColumnName: 'id', onDelete: 'CASCADE')] |
||
| 30 | protected User $user; |
||
| 31 | |||
| 32 | public function getIid(): ?int |
||
| 33 | { |
||
| 34 | return $this->iid; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getBlog(): ?CBlog |
||
| 40 | } |
||
| 41 | |||
| 42 | public function setBlog(?CBlog $blog): self |
||
| 47 | } |
||
| 48 | } |
||
| 49 |