public function init() { if ($this->functionSearch === null) { $this->setFunctionSearch(function ($activeQuery) { return ArrayHelper::getColumn($activeQuery->all(), 'id'); }); } parent::init(); }