Find
find( mixed $primary_key_value )
The find() method returns a result based on the primary key. Because the primary key should be unique, find() returns one result as a Data Object.
1 2 3 4 5 6 |
// Find One Where Primary Key = 1
$r = DB::MySQL()->table('myTable')->find(1); // Use the Data Object
$r->name = 'new name'; $r->save(); |