1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/manual/codes/Basic Components - Record - Updating records.php

13 lines
168 B
PHP

<?php
$table = $session->getTable("User");
$user = $table->find(2);
if($user !== false) {
$user->name = "Jack Daniels";
$user->save();
}
?>