Basic Components - Record - Updating records.php 214 Bytes
Newer Older
doctrine's avatar
doctrine committed
1 2 3 4 5 6 7 8 9 10 11 12 13
<?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();
?>