Collect data or teach Doctrine to do multiple insert
An interesting implementation for importing data into the database, since you can insert data into related tables. The author tested the code only on the MySQL server and in his words everything works with a bang.