save 20 users with one sql query?
Posted
by fayer
on Stack Overflow
See other posts from Stack Overflow
or by fayer
Published on 2010-05-09T07:34:55Z
Indexed on
2010/05/09
10:08 UTC
Read the original article
Hit count: 195
i save a user like this in doctrine:
$user = User();
$user->name = 'peter';
$user->save();
is there a way to save 20 users in one sql query?
or do i have to loop the above code 20 times hence creating 20 sql queries?
thanks
© Stack Overflow or respective owner