private function getRelationFromDb($name)
    {
        if (!$this->relationsParser) {
            $this->relationsParser = RelationsParser::parse(get_class($this), new ModelCondition(['model' => get_class($this)]), '*');
        }
        return $this->relationsParser->getForSingleModel($this, $name);
    }
private function getRelationFromDb($name)
    {
        if (!$this->relationsParser) {
            $this->relationsParser = RelationsParser::parse(get_class($this), new ModelCondition(['model' => get_class($this)]), '*');
        }
        return $this->relationsParser->getForSingleModel($this, $name);
    }
private function getRelationFromDb ( $ name ) { if ( ! $ this -> relationsParser ) { $ this -> relationsParser = RelationsParser :: parse ( get_class ( $ this ) , new ModelCondition ( [ 'model' => get_class ( $ this ) ] ) , '*' ) ; } return $ this -> relationsParser -> getForSingleModel ( $ this , $ name ) ; }
Reads all relations for current model.
@param $name
@return DbModel[]|DbModel
Reads all relations for current model .