code: public function searchByName( $name, $config = [] ) {
  
  		$modelClass	= static::$modelClass;
  		$modelTable	= $this->getModelTable();
  
  		$config[ 'query' ]		= $modelClass::queryWithHasOne();
  		$config[ 'columns' ]	= [ "$modelTable.id", "$modelTable.name", "$modelTable.email" ];
  		$config[ 'array' ]		= isset( $config[ 'array' ] ) ? $config[ 'array' ] : false;
  
  		$config[ 'query' ]->andWhere( "$modelTable.name like '$name%'" );
  
  		$models = static::searchModels( $config );
  		$result	= [];
  
  		foreach( $models as $model ) {
  
  			$result[] = [ 'id' => $model->id, 'name' => "$model->name, $model->email" ];
  		}
  
  		return $result;
  	}
docs: Read - Lists ----