protected function setRelations(Jory $jory): void
    {
        $relations = $this->getArrayValue($this->joryArray, 'rlt');

        if ($relations) {
            $relations = $this->convertDotNotatedRelations($relations);
            foreach ($relations as $name => $joryData) {
                $subJory = (new self($joryData))->getJory();
                $jory->addRelation(new Relation($name, $subJory));
            }
        }
    }
protected function setRelations(Jory $jory): void
    {
        $relations = $this->getArrayValue($this->joryArray, 'rlt');

        if ($relations) {
            $relations = $this->convertDotNotatedRelations($relations);
            foreach ($relations as $name => $joryData) {
                $subJory = (new self($joryData))->getJory();
                $jory->addRelation(new Relation($name, $subJory));
            }
        }
    }
protected function setRelations ( Jory $ jory ) : void { $ relations = $ this -> getArrayValue ( $ this -> joryArray , 'rlt' ) ; if ( $ relations ) { $ relations = $ this -> convertDotNotatedRelations ( $ relations ) ; foreach ( $ relations as $ name => $ joryData ) { $ subJory = ( new self ( $ joryData ) ) -> getJory ( ) ; $ jory -> addRelation ( new Relation ( $ name , $ subJory ) ) ; } } }
Set the relations on the jory object based on the given data in constructor.

@param Jory $jory
@throws \JosKolenberg\Jory\Exceptions\JoryException
Set the relations on the jory object based on the given data in constructor .