mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-09-19 23:56:13 +02: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) - Drop the dependency of roave/security-advisories (#41)
### Fixed ### Fixed
- Use the new annotations for lazy loading (#54)
- Update and pin the dev dependencies (#45) - Update and pin the dev dependencies (#45)
- Drop an obsolete "replace" entry from composer.json (#42) - Drop an obsolete "replace" entry from composer.json (#42)
- Explicitly require MySQL on Travis CI (#38) - 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\Domain\Model\FileReference;
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity; use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
use TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy; use TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy;
use TYPO3\CMS\Extbase\Annotation\ORM\Lazy;
/** /**
* This class represents a tea (flavor), e.g., "Earl Grey". * 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 * @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
* @lazy * @Lazy
*/ */
protected $image = null; protected $image = null;