upgrade symfony
This commit is contained in:
@@ -6,32 +6,23 @@ use App\Repository\ExchangeRatesRepository;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Doctrine\ORM\Mapping\Index;
|
||||
|
||||
/**
|
||||
* @ORM\Entity(repositoryClass=ExchangeRatesRepository::class)
|
||||
* @ORM\Table(indexes={@Index(name="currency", columns={"date_date","str_currency"})})
|
||||
*/
|
||||
#[ORM\Table]
|
||||
#[Index(columns: ['date_date', 'str_currency'], name: 'currency')]
|
||||
#[ORM\Entity(repositoryClass: ExchangeRatesRepository::class)]
|
||||
class ExchangeRates
|
||||
{
|
||||
/**
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue
|
||||
* @ORM\Column(type="integer")
|
||||
*/
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue]
|
||||
#[ORM\Column(type: 'integer')]
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=3)
|
||||
*/
|
||||
#[ORM\Column(type: 'string', length: 3)]
|
||||
private $strCurrency;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="float")
|
||||
*/
|
||||
#[ORM\Column(type: 'float')]
|
||||
private $intRate;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="date")
|
||||
*/
|
||||
#[ORM\Column(type: 'date')]
|
||||
private $dateDate;
|
||||
|
||||
public function getId(): ?int
|
||||
|
||||
Reference in New Issue
Block a user