src/Model/Behavior/Strategy/LookupStrategy.php
public function enum(array $config = [])
    {
        $query = $this->loadModel()
            ->find('list', [
                'keyField' => 'name',
                'valueField' => 'label',
            ])
            ->where([
                'prefix' => $this->getConfig('prefix'),
            ]);

        foreach ($config as $method => $args) {
            if (method_exists($query, $method)) {
                $query = call_user_func_array([$query, $method], $args);
            }
        }

        return $query->toArray();
    }
public function enum(array $config = [])
    {
        $query = $this->loadModel()
            ->find('list', [
                'keyField' => 'name',
                'valueField' => 'label',
            ])
            ->where([
                'prefix' => $this->getConfig('prefix'),
            ]);

        foreach ($config as $method => $args) {
            if (method_exists($query, $method)) {
                $query = call_user_func_array([$query, $method], $args);
            }
        }

        return $query->toArray();
    }
{@inheritdoc}

@param array $config (unused in this case).
@return array