$entry = Model_Article::find(4); $entry->title = 'My first edit'; $entry->author = 'Total n00b'; $entry->save();
$projet = Model_Projet::find($id);
$projet->nom = Input::post('nom');
$projet->heures_commandees = Input::post('heures');
$projet->save();
class Model_Projet extends Orm\Model
{
protected static $_has_many = array('tache');
protected static $_properties = array('id', 'nom', 'heures_commandees');
public function getProjets()
{
return $this->find('all',array('order_by' => array('nom' => 'asc')));
}
}

It looks like you're new here. If you want to get involved, click one of these buttons!