Blast\Orm\Mapper::manyToMany PHP Метод

manyToMany() публичный Метод

The junction table stores associations from entities of type _A_ to entities of type _B_.
public manyToMany ( $entity, $foreignEntity, null $foreignKey = null, null $localKey = null, null $junction = null, null $junctionLocalKey = null, null $junctionForeignKey = null ) : Query
$entity
$foreignEntity
$foreignKey null
$localKey null
$junction null
$junctionLocalKey null
$junctionForeignKey null
Результат Query
    public function manyToMany($entity, $foreignEntity, $foreignKey = null, $localKey = null, $junction = null, $junctionLocalKey = null, $junctionForeignKey = null)
    {
        return $this->prepareRelation(new ManyToMany($entity, $foreignEntity, $foreignKey, $localKey, $junction, $junctionLocalKey, $junctionForeignKey));
    }