Skip to content

Commit

Permalink
fix(chore): resolve problem of typing
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisdugue authored Oct 30, 2024
1 parent ab8ea0c commit eb32e3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Entity/LibraryLibraries.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
class LibraryLibraries
{
/**
* @var int|null
* @var int|Library|null
*/
#[ORM\Id]
#[ORM\ManyToOne(targetEntity: Library::class)]
#[ORM\JoinColumn(name: "library_id", referencedColumnName: "id", onDelete: 'CASCADE')]
private ?int $library;
private null|Library|int $library;
/**
* @var Library|null
*/
Expand Down Expand Up @@ -49,14 +49,14 @@ public function getRequiredLibrary()
return $this->requiredLibrary;
}
/**
* @param Library $requiredLibrary
* @param null|Library|int $requiredLibrary
*/
public function setRequiredLibrary($requiredLibrary)
{
$this->requiredLibrary = $requiredLibrary;
}
/**
* @return Library
* @return null|Library|int
*/
public function getLibrary()
{
Expand Down

0 comments on commit eb32e3c

Please sign in to comment.