mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-22 07:36:13 +01:00

[BUGFIX] Use the new annotations for lazy loading (#54)

This commit is contained in:
Oliver Klee 2019-08-12 16:23:28 +02:00 committed by GitHub
parent 37d8935efa
commit eac6593a9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -26,6 +26,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
- Drop the dependency of roave/security-advisories (#41)
### Fixed
- Use the new annotations for lazy loading (#54)
- Update and pin the dev dependencies (#45)
- Drop an obsolete "replace" entry from composer.json (#42)
- Explicitly require MySQL on Travis CI (#38)

View file

@ -5,6 +5,7 @@ namespace OliverKlee\Tea\Domain\Model\Product;
use TYPO3\CMS\Extbase\Domain\Model\FileReference;
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
use TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy;
use TYPO3\CMS\Extbase\Annotation\ORM\Lazy;
/**
* This class represents a tea (flavor), e.g., "Earl Grey".
@ -25,7 +26,7 @@ class Tea extends AbstractEntity
/**
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
* @lazy
* @Lazy
*/
protected $image = null;