Whenaccessingsingleelementsofthecollectionandthoseelements(records)don'texistDoctrineauto-addsthem.Inthefollowingexamplewefetchallusersfromdatabase(thereare5)andthenaddcoupleofusersinthecollection.AswithPHParraystheindexesstartfromzero.<codetype="php">$users=$table->findAll();printcount($users);// 5$users[5]->name="new user 1";$users[6]->name="new user 2";</code>