1
0
mirror of synced 2024-12-15 23:56:02 +03:00
doctrine2/manual/docs/Working with objects - Component overview - Collection - Saving the collection.php

12 lines
212 B
PHP
Raw Normal View History

2007-04-14 01:49:11 +04:00
As with records the collection can be saved by calling the save method.
<code type="php">
$users = $table->findAll();
$users[0]->name = "Jack Daniels";
$users[1]->name = "John Locke";
$users->save();
</code>