Doctrine_Collectionisacollectionofrecords(seeDoctrine_Record).AswithrecordsthecollectionscanbedeletedandsavedusingDoctrine_Collection::delete()andDoctrine_Collection::save()accordingly.WhenfetchingdatafromdatabasewitheitherDQLAPI(seeDoctrine_Query)orrawSqlAPI(seeDoctrine_RawSql)themethodsreturnaninstanceofDoctrine_Collectionbydefault.Thefollowingexampleshowshowtoinitializeanewcollection:<codetype="php">$conn=Doctrine_Manager::getInstance()->openConnection(newPDO("dsn","username","pw"));// initalizing a new collection$users=newDoctrine_Collection($conn->getTable('User'));// alternative (propably easier)$users=newDoctrine_Collection('User');// adding some data$coll[0]->name='Arnold';$coll[1]->name='Somebody';// finally save it!$coll->save();</code>