1
0
mirror of synced 2025-02-06 23:39:25 +03:00
doctrine2/manual/codes/Basic Components - Record - Updating records.php

14 lines
214 B
PHP
Raw Normal View History

2006-07-23 21:08:06 +00:00
<?php
$table = $session->getTable("User");
try {
$user = $table->find(2);
} catch(Doctrine_Find_Exception $e) {
print "Couldn't find user";
}
$user->name = "Jack Daniels";
$user->save();
?>