| Total Complexity | 0 |
| Total Lines | 11 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | #[ORM\Entity(repositoryClass: 'EcodevTests\Felix\Blog\Repository\PostRepository')] |
||
| 13 | final class Post extends AbstractModel |
||
| 14 | { |
||
| 15 | #[ORM\Column(type: 'string', length: 50, options: ['default' => ''])] |
||
| 16 | private string $title = ''; |
||
|
|
|||
| 17 | |||
| 18 | #[ORM\Column(type: 'text')] |
||
| 19 | private string $body = ''; |
||
| 20 | |||
| 21 | #[ORM\ManyToOne(targetEntity: 'EcodevTests\Felix\Blog\Model\User', inversedBy: 'posts')] |
||
| 22 | private User $user; |
||
| 23 | } |
||
| 24 |