yiisoft/yii — Issue #417: CAttributeCollection mergeWith does not take into account $caseSensitive
Author: dmtrs
Created: 2012-02-29 20:11:27+00:00
State: open

When setting $caseSensitive to true in a [CAttributeCollections](http://www.yiiframework.com/doc/api/1.1/CAttributeCollection#caseSensitive-detail) and try to use mergeWith the keys are not gone to lower case:

$collection = new CAttributeCollection();
$collection->caseSensitive = true;
$collection->mergeWith('Test'=>"Expect lower case test');
$collection->itemAt('test'); //returns NULL
$collection->itemAt('Test'); //returns "Expect lower case test'