src/Entity/Common/Review.php line 10
<?php
namespace App\Entity\Common;
use App\Entity\Common\Owner;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Table(name: 'reviews')]
#[ORM\Entity]
class Review
{
/**
* @var
*/
#[ORM\Embedded(class: 'App\Entity\Common\Owner')]
private $owner;
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(type: 'integer')]
private $id;
/**
* @var
*/
#[ORM\Column(type: 'smallint')]
private $rating;
/**
* @var
*/
#[ORM\ManyToOne(targetEntity: 'App\Entity\User\User')]
private $user;
/**
* @var
*/
#[ORM\Column(type: 'text')]
private $text;
public function __construct()
{
$this->owner = new Owner();
}
}