Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/Functional/Apps/DefaultApp/src/Entity/Bill.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ class Bill
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
private ?int $id = null;

#[ORM\Column(type: 'string', length: 255)]
private $name;
private ?string $name = null;

#[ORM\ManyToMany(targetEntity: Customer::class, inversedBy: 'bills')]
private $customers;
private Collection $customers;

public function __construct()
{
Expand Down
16 changes: 8 additions & 8 deletions tests/Functional/Apps/DefaultApp/src/Entity/BlogPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,29 @@ class BlogPost
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
private ?int $id = null;

#[ORM\Column(type: 'string', length: 255)]
private $title;
private ?string $title = null;

#[ORM\Column(type: 'string', length: 255)]
private $slug;
private ?string $slug = null;

#[ORM\Column(type: 'text')]
private $content;
private ?string $content = null;

#[ORM\ManyToMany(targetEntity: Category::class, inversedBy: 'blogPosts')]
private $categories;
private Collection $categories;

#[ORM\Column(type: 'datetime_immutable')]
private $createdAt;
private ?\DateTimeInterface $createdAt = null;

#[ORM\Column(type: 'datetime_immutable', nullable: true)]
private $publishedAt;
private ?\DateTimeImmutable $publishedAt = null;

#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'blogPosts')]
#[ORM\JoinColumn(nullable: false)]
private $author;
private ?User $author = null;

#[ORM\ManyToOne(targetEntity: User::class)]
private $publisher;
Expand Down
8 changes: 4 additions & 4 deletions tests/Functional/Apps/DefaultApp/src/Entity/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ class Category
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
private ?int $id = null;

#[Assert\NotBlank]
#[ORM\Column(type: 'string', length: 255)]
private $name;
private ?string $name = null;

#[ORM\Column(type: 'string', length: 255)]
private $slug;
private ?string $slug = null;

#[ORM\ManyToMany(targetEntity: BlogPost::class, mappedBy: 'categories')]
private $blogPosts;
private Collection $blogPosts;

#[ORM\Column(type: 'boolean')]
private bool $active = false;
Expand Down
6 changes: 3 additions & 3 deletions tests/Functional/Apps/DefaultApp/src/Entity/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ class Customer
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
private ?int $id = null;

#[ORM\Column(type: 'string', length: 255)]
private $name;
private ?string $name = null;

#[ORM\ManyToMany(targetEntity: Bill::class, mappedBy: 'customers')]
private $bills;
private Collection $bills;

public function __construct()
{
Expand Down
6 changes: 3 additions & 3 deletions tests/Functional/Apps/DefaultApp/src/Entity/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class Page
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
private ?int $id = null;

#[ORM\Column(type: 'string', length: 255)]
private $name;
private ?string $name = null;

#[ORM\ManyToOne(targetEntity: Website::class, inversedBy: 'pages')]
#[ORM\JoinColumn(nullable: false)]
Expand Down Expand Up @@ -42,7 +42,7 @@ public function getWebsite()
return $this->website;
}

public function setWebsite(?Website $website)
public function setWebsite(?Website $website): static
{
$this->website = $website;

Expand Down
8 changes: 4 additions & 4 deletions tests/Functional/Apps/DefaultApp/src/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ class User implements \Stringable
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
private ?int $id = null;

#[ORM\Column(type: 'string', length: 255)]
private $name;
private ?string $name = null;

#[ORM\Column(type: 'string', length: 255)]
private $email;
private ?string $email = null;

#[ORM\OneToMany(targetEntity: BlogPost::class, mappedBy: 'author', orphanRemoval: true)]
private $blogPosts;
private Collection $blogPosts;

public function __construct()
{
Expand Down
6 changes: 3 additions & 3 deletions tests/Functional/Apps/DefaultApp/src/Entity/Website.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ class Website implements \Stringable
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
private ?int $id = null;

#[ORM\Column(type: 'string', length: 255)]
private $name;
private ?string $name = null;

#[ORM\OneToMany(targetEntity: Page::class, mappedBy: 'website', orphanRemoval: true)]
private $pages;
private Collection $pages;

public function __construct()
{
Expand Down
Loading