Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace In2code\In2msiproducts\Domain\Model;
- class Product extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
- /**
- * fileReferenceRepository
- *
- * @var \In2code\In2msiproducts\Domain\Repository\FileReferenceRepository
- * @inject
- */
- protected $fileReferenceRepository;
- /**
- * @var \In2code\In2msiproducts\Domain\Model\FileReference
- */
- protected $productimage;
- /**
- * @param \In2code\In2msiproducts\Domain\Model\FileReference $productimage
- */
- public function setProductimage(\In2code\In2msiproducts\Domain\Model\FileReference $productimage) {
- $this->productimage = $productimage;
- }
- /**
- * @return \In2code\In2msiproducts\Domain\Model\FileReference
- */
- public function getProductimage() {
- return $this->fileReferenceRepository->findOneByProduct($this);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement