/** * @return array */ public function entityDataProvider() { $event = new CalendarEvent(); $event->setReminders(new ArrayCollection([new Reminder()])); return [[null, false], [new \stdClass(), false], [new CalendarEvent(), false], [$event, true]]; }