mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-10 04:56:12 +01:00
[BUGFIX] Use the new annotations for lazy loading (#54)
This commit is contained in:
parent
37d8935efa
commit
eac6593a9d
2 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue