是否可以为附加到API平台实体的集合定义最大行数?
例如
class Contact
{
/**
* @ORM\ManyToMany(targetEntity="App\Entity\Reminder", mappedBy="contacts")
* @Groups({"contact"})
* @ApiProperty(readable=true,
* attributes={"swagger_context"={
* "description": "List of reminders"
* ... LIMIT NUMBER OF reminders by Contact (e.g. : returns the first 10 reminders)
* }})
*/
private $reminders;
谢谢