CRUDlex\MySQLData::getManyFields PHP Method

getManyFields() protected method

Gets the many-to-many fields.
protected getManyFields ( ) : array | string[]
return array | string[] the many-to-many fields
    protected function getManyFields()
    {
        $fields = $this->definition->getFieldNames(true);
        return array_filter($fields, function ($field) {
            return $this->definition->getType($field) === 'many';
        });
    }