LazyRecord\BaseModel::fetchManyToManyRelationCollection PHP Method

fetchManyToManyRelationCollection() public method

public fetchManyToManyRelationCollection ( $relationId )
    public function fetchManyToManyRelationCollection($relationId)
    {
        $schema = $this->getSchema();
        $relation = $schema->getRelation($relationId);
        return $relation->newForeignForeignCollection($schema->getRelation($relation['relation_junction']));
    }