Is there a way to insert multiple records into the database as one query, using the DataModel (without having to write a raw SQL query) ?
For example, at the moment I am doing this:
$member = new Member();
$organization->Name = $data['member_name_0'];
..
$member->write();
$member = new Member();
$organization->Name = $data['member_name_1'];
..
$member->write();
.. which I'm guessing it would be performing multiple insert queries, but it would be better to do a single insert query for all the records. Hope that makes sense.
Any help appreciated,
Cheers