lithium\data\Collection::set PHP Method

set() public method

For example: $collection->set(array( 42 => array('title' => 'Lorem Ipsum'), 43 => array('title' => 'Dolor Amet') ));
public set ( arary $values ) : void
$values arary An associative array of fields and values to assign to the `Collection`.
return void
    public function set($values)
    {
        foreach ($values as $key => $val) {
            $this[$key] = $val;
        }
    }