1
0
mirror of synced 2025-01-18 22:41:43 +03:00
doctrine2/manual/codes/Basic Components - Record - Updating records.php

13 lines
165 B
PHP
Raw Normal View History

2006-07-23 21:08:06 +00:00
<?php
$table = $conn->getTable("User");
2006-07-23 21:08:06 +00:00
2006-08-17 09:42:18 +00:00
$user = $table->find(2);
2006-07-23 21:08:06 +00:00
2006-08-17 09:42:18 +00:00
if($user !== false) {
$user->name = "Jack Daniels";
$user->save();
}
2006-07-23 21:08:06 +00:00
?>