mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-22 09:36:10 +01:00
Do not load all dates of each event
Most of the time dates are fetched and shown. They need the event to show info like title. But they nearly never need further dates, except in detail view. Turning this property lazy will save a lot of data fetching and mapping and provides a huge performance impact.
This commit is contained in:
parent
515351823b
commit
22e75d4729
1 changed files with 1 additions and 0 deletions
|
@ -131,6 +131,7 @@ class Event extends AbstractEntity
|
||||||
/**
|
/**
|
||||||
* @var ObjectStorage<Date>
|
* @var ObjectStorage<Date>
|
||||||
* @Extbase\ORM\Cascade remove
|
* @Extbase\ORM\Cascade remove
|
||||||
|
* @Extbase\ORM\Lazy
|
||||||
*/
|
*/
|
||||||
protected $dates;
|
protected $dates;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue