Closed PawelSuwinski closed 1 year ago
Support for repeatable attributes, for example:
Book: attributes: - ORM\UniqueConstraint: { name: "isbn", columns: ["isbn"] } - ORM\UniqueConstraint: { name: "title", columns: ["title"] } properties: isbn: ~ title: { range: "https://schema.org/Text" }
gives:
/** * A book. * * @see https://schema.org/Book */ #[ORM\Entity] #[ApiResource(types: ['https://schema.org/Book'], routePrefix: '/library')] #[ORM\UniqueConstraint(name: 'isbn', columns: ['isbn'])] #[ORM\UniqueConstraint(name: 'title', columns: ['title'])] #[MyAttribute] class Book {
Thank you @PawelSuwinski.
Support for repeatable attributes, for example:
gives: