Bug #57972

Missing @ManyToOne in example for resource

Added by Kay Strobach over 7 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
- Documentation -
Target version:
-
Start date:
2014-04-16
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.5
Has patch:
No
Complexity:

Description

  /**
    * @var \TYPO3\Flow\Resource\Resource
    */
   protected $originalResource;
  /**
    * @param \TYPO3\Flow\Resource\Resource $originalResource
    * @return void
    */
   public function setOriginalResource(\TYPO3\Flow\Resource\Resource $originalResource) {
      $this->originalResource = $originalResource;
   }

   /**
    * @return \TYPO3\Flow\Resource\Resource
    */
   public function getOriginalResource() {
      return $this->originalResource;
   }

http://docs.typo3.org/flow/TYPO3FlowDocumentation/TheDefinitiveGuide/PartIII/ResourceManagement.html

add to line2
     * @ORM\ManyToOne

like for example here:
https://git.typo3.org/Packages/TYPO3.Blog.git/blob/HEAD:/Classes/TYPO3/Blog/Domain/Model/Image.php

No data to display

Also available in: Atom PDF