14 lines
214 B
PHP
14 lines
214 B
PHP
<?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();
|
|
?>
|