Bas
Bas

Reputation: 137

Kohana ORM insert/update a post() into db

I am new @Kohana and i am trying to put data into the dbase from a post.

$save = ORM::factory('Admin_test');
$save->users_id = $user->id;
etc
etc
etc
$save->save();

But how can i save the complete $this->request->post() at once?

Upvotes: 0

Views: 662

Answers (1)

Waldson Patricio
Waldson Patricio

Reputation: 1529

try this out:

$save->values($this->request->post());

Upvotes: 1

Related Questions