protected function _alias($alias, $conditions, $multipleNulls)
    {
        $aliased = [];
        foreach ($conditions as $key => $value) {
            if ($multipleNulls) {
                $aliased["$alias.$key"] = $value;
            } else {
                $aliased["$alias.$key IS"] = $value;
            }
        }

        return $aliased;
    }
protected function _alias($alias, $conditions, $multipleNulls)
    {
        $aliased = [];
        foreach ($conditions as $key => $value) {
            if ($multipleNulls) {
                $aliased["$alias.$key"] = $value;
            } else {
                $aliased["$alias.$key IS"] = $value;
            }
        }

        return $aliased;
    }
protected function _alias ( $ alias , $ conditions , $ multipleNulls ) { $ aliased = [ ] ; foreach ( $ conditions as $ key => $ value ) { if ( $ multipleNulls ) { $ aliased [ "$alias.$key" ] = $ value ; } else { $ aliased [ "$alias.$key IS" ] = $ value ; } } return $ aliased ; }
Add a model alias to all the keys in a set of conditions.

Null values will be omitted from the generated conditions,
as SQL UNIQUE indexes treat `NULL != NULL`

@param string $alias The alias to add.
@param array $conditions The conditions to alias.
@param bool $multipleNulls Whether or not to allow multiple nulls.
@return array
Add a model alias to all the keys in a set of conditions .