このコード(ソース:http ://www.doctrine-project.org/documentation/manual/1_0/hu/component-overview:connection:flushing-the-connection )
$conn = Doctrine_Manager::connection();
$user1 = new User();
$user1->username = 'Jack';
$user2 = new User();
$user2->username = 'jwage';
$conn->flush();
結果として2つの挿入クエリが実行されます。
1つのバルクインサートだけでこれを行う方法はありますか?
教義2はこの問題を解決していると思いますが(http://www.doctrine-project.org/blog/doctrine2-batch-processing)、まだベータ版です。
何か案が?