https://g.co/gemini/share/371c5cf012fc
// src/Model/BookCollection.php
namespace App\Model;
use App\Model\Author;
use App\Model\BookMetadata;
use Symfony\Component\Validator\Constraints as Assert;
#[Assert\Cascade]
class BookCollection
{
#[Assert\NotBlank]
protected string $name = '';
public BookMetadata $metadata;
public Author $author;
// ...
}Powered by Froala Editor