public function includes($rels)
    {
        foreach (Relationship::normalizeMap($rels) as $alias=>$nested) {
            $this->_includes[$alias] = new Relationships\Includer(
                $this->_query, $this->_schema->relationship($alias), $nested
            );
        }

        return $this;
    }
public function includes($rels)
    {
        foreach (Relationship::normalizeMap($rels) as $alias=>$nested) {
            $this->_includes[$alias] = new Relationships\Includer(
                $this->_query, $this->_schema->relationship($alias), $nested
            );
        }

        return $this;
    }
public function includes ( $ rels ) { foreach ( Relationship :: normalizeMap ( $ rels ) as $ alias => $ nested ) { $ this -> _includes [ $ alias ] = new Relationships \ Includer ( $ this -> _query , $ this -> _schema -> relationship ( $ alias ) , $ nested ) ; } return $ this ; }
Eager load relationships to avoid the N+1 problem
@chainable
Eager load relationships to avoid the N + 1 problem