protected function addEntity($type, $id, Entity\Content $owner)
    {
        $newEntity = new Entity\Relations([
            'from_contenttype' => (string) $owner->getContenttype(),
            'from_id'          => $owner->getId(),
            'to_contenttype'   => $type,
            'to_id'            => $id,
        ]);
        $this->add($newEntity);
    }
protected function addEntity($type, $id, Entity\Content $owner)
    {
        $newEntity = new Entity\Relations([
            'from_contenttype' => (string) $owner->getContenttype(),
            'from_id'          => $owner->getId(),
            'to_contenttype'   => $type,
            'to_id'            => $id,
        ]);
        $this->add($newEntity);
    }
protected function addEntity ( $ type , $ id , Entity \ Content $ owner ) { $ newEntity = new Entity \ Relations ( [ 'from_contenttype' => ( string ) $ owner -> getContenttype ( ) , 'from_id' => $ owner -> getId ( ) , 'to_contenttype' => $ type , 'to_id' => $ id , ] ) ; $ this -> add ( $ newEntity ) ; }
Adds a related entity by type, id and owner

@param string         $type
@param int            $id
@param Entity\Content $owner
Adds a related entity by type id and owner