vrana/notorm — Issue #31: insert array of rows and not by args
Author: bystac
Created: 2011-11-05 09:01:09+00:00
State: open

Hi,

It'll be super useful to insert multiple rows by array and not with arguments,
look at this example:
$tags = array();
$tags[0] = array('id'=>21, 'name'=>'PHP');
$tags[1] = array('id'=>22, 'name'=>'MySQL');
$tags[2] = array('id'=>23, 'name'=>'Javascript');
$db->tags()->insert($tags);

for now we can only insert rows by passing them as arguments:
$db->tags()->insert($tags[0],$tags[1], $tags[2]);

this not very useful, when your rows created in code.