src/Pckg/Database/Query/Helper/With.php
public function fillCollectionWithRelations(CollectionInterface $collection)
    {
        if (!$collection->count()) {
            return $collection;
        }

        foreach ($this->getWith() as $relation) {
            $relation->fillCollection($collection);
        }

        return $collection;
    }
public function fillCollectionWithRelations(CollectionInterface $collection)
    {
        if (!$collection->count()) {
            return $collection;
        }

        foreach ($this->getWith() as $relation) {
            $relation->fillCollection($collection);
        }

        return $collection;
    }
public function fillCollectionWithRelations ( CollectionInterface $ collection ) { if ( ! $ collection -> count ( ) ) { return $ collection ; } foreach ( $ this -> getWith ( ) as $ relation ) { $ relation -> fillCollection ( $ collection ) ; } return $ collection ; }
Fill collection of records with all of their relations.

@param CollectionInterface $collection

@return CollectionInterface
Fill collection of records with all of their relations .