Bug #57972

Missing @ManyToOne in example for resource

Added by Kay Strobach over 1 year ago.

Status:New Start date:2014-04-16
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:- Documentation -
Target version:-
PHP Version:5.5 Complexity:
Has patch:No Affected Flow version:Git master

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

Also available in: Atom PDF