HegreLand/src/Entity/Assignment.php

26 lines
567 B
PHP
Raw Normal View History

<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Table(name: 'Assignment')]
class Assignment
{
#[ORM\Id]
#[ORM\OneToMany(targetEntity: Employee::class, mappedBy: 'assignments')]
#[ORM\JoinColumn(nullable: false)]
private ?Employee $employee = null;
#[ORM\Id]
#[ORM\OneToMany(targetEntity: Ride::class, mappedBy: 'assignments')]
#[ORM\JoinColumn(nullable: false)]
private ?Ride $ride = null;
#[ORM\Column]
private ?\DateTime $startHour = null;
#[ORM\Column]
private ?\DateTime $endHour = null;
}