summaryrefslogtreecommitdiff
path: root/src/Model/VoteCard.php
blob: e9b3e60d46b1bd20ed9b1e4b8a7d0a7e8b01016d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

namespace Elements\Model;

use Doctrine\DBAL\Schema\Column;
use Doctrine\DBAL\Schema\Table;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\ManyToOne;

#[Entity]
#[Table(name: 'votes_card')]
/**
 * @Entity
 * @Table(name="votes_card")
 */
class VoteCard extends Vote
{
  #[ManyToOne(targetEntity: Card::class, inversedBy: 'votes')]
  /**
   * @ManyToOne(targetEntity="Card", inversedBy="votes", cascade={"persist"})
   */
  public Card $card;
}