class Records
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $title;
/**
* @ORM\Column(type="string", length=40)
*/
private $link;
/**
* @ORM\Column(type="text")
*/
private $description;
/**
* @ORM\ManyToOne(targetEntity=Versions::class, inversedBy="records")
* @ORM\JoinColumn(nullable=false)
*/
private $version;
/**
* @ORM\Column(type="boolean")
*/
private $visible;
/**
* @ORM\ManyToMany(targetEntity=Mods::class, inversedBy="records")
*/
private $mods;
public function __construct()
{
$this->mods = new ArrayCollection();
}
}