source/Spiral/ORM/Entities/Relations/HasManyRelation.php
protected function loadRelated(): array
    {
        $innerKey = $this->parent->getField($this->key(Record::INNER_KEY));
        if (!empty($innerKey)) {
            return $this->createSelector($innerKey)->fetchData();
        }

        return [];
    }
protected function loadRelated(): array
    {
        $innerKey = $this->parent->getField($this->key(Record::INNER_KEY));
        if (!empty($innerKey)) {
            return $this->createSelector($innerKey)->fetchData();
        }

        return [];
    }
protected function loadRelated ( ) : array { $ innerKey = $ this -> parent -> getField ( $ this -> key ( Record :: INNER_KEY ) ) ; if ( ! empty ( $ innerKey ) ) { return $ this -> createSelector ( $ innerKey ) -> fetchData ( ) ; } return [ ] ; }
Fetch data from database. Lazy load.

@return array
Fetch data from database . Lazy load .