Webiny\Component\Entity\EntityAttributeBuilder::many2many PHP Method

many2many() public method

public many2many ( string $collectionName ) : Many2ManyAttribute
$collectionName string Intermediate collection name
return Webiny\Component\Entity\Attribute\Many2ManyAttribute
    public function many2many($collectionName)
    {
        return $this->attributes[$this->attribute] = new self::$classMap['many2many']($this->attribute, $this->entity, $collectionName);
    }