Neos\Flow\Tests\Functional\Persistence\Fixtures\RelatedIndexEntity::setEntityWithIndexedRelation PHP Method

setEntityWithIndexedRelation() public method

public setEntityWithIndexedRelation ( EntityWithIndexedRelation $entityWithIndexedRelation )
$entityWithIndexedRelation EntityWithIndexedRelation
    public function setEntityWithIndexedRelation($entityWithIndexedRelation)
    {
        $this->entityWithIndexedRelation = $entityWithIndexedRelation;
    }

Usage Example

 /**
  * @param string $sorting
  * @param RelatedIndexEntity $relatedIndexEntity
  */
 public function setRelatedIndexEntity($sorting, RelatedIndexEntity $relatedIndexEntity)
 {
     $relatedIndexEntity->setSorting($sorting);
     $relatedIndexEntity->setEntityWithIndexedRelation($this);
     $this->relatedIndexEntities->set($sorting, $relatedIndexEntity);
 }