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

12 lines
222 B
PHP

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>