https://g.co/gemini/share/b53f6709ca8d
// src/Model/BookCollection.php
namespace App\Model;
use App\Model\Author;
use App\Model\BookMetadata;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
#[Assert\EnableAutoMapping]
class BookCollection
{
#[ORM\Column(nullable: false)]
protected string $name = '';
#[ORM\ManyToOne(targetEntity: Author::class)]
public Author $author;
// ...
}Powered by Froala Editor