src/traits/DefaultFiltersTrait.php
protected function _addDefaultFiltersConditions( $query, $tableName = null, ?array $only = null, ?array $except = null, ?bool $schemaOnly = true )
	{
		$tableName = $tableName ?? $query->getRawTableName();
		
		$attributes = $this->defaultFiltersList( $only, $except, $schemaOnly );
		
		foreach( $attributes as $attribute ) {
			
			if ( is_array($this->$attribute ) ){
				$query->andFilterWhere( [ "$tableName.$attribute" => $this->$attribute ] );
			}
			else{
				$query->andFilterWhere( [ 'like', "$tableName.$attribute", $this->$attribute ] );
			}
			
		}
	}
protected function _addDefaultFiltersConditions( $query, $tableName = null, ?array $only = null, ?array $except = null, ?bool $schemaOnly = true )
	{
		$tableName = $tableName ?? $query->getRawTableName();
		
		$attributes = $this->defaultFiltersList( $only, $except, $schemaOnly );
		
		foreach( $attributes as $attribute ) {
			
			if ( is_array($this->$attribute ) ){
				$query->andFilterWhere( [ "$tableName.$attribute" => $this->$attribute ] );
			}
			else{
				$query->andFilterWhere( [ 'like', "$tableName.$attribute", $this->$attribute ] );
			}
			
		}
	}
@param $query
@param null $tableName
@param array|null $only
@param array|null $except
@param bool|null $schemaOnly

add andWhere conditions for all of $Model's attributes OR defined by defaultFiltersList