[Catalyst] Two ways to create record
Alex Povolotsky
tarkhil at over.ru
Sun Jan 13 13:47:38 GMT 2008
Hello!
In Tutorial (BTW, "CRUD" section of tutorial lacks U completely), I've
seen this way of filling in the record:
my $book = $c->model('GalleryDB::Gallery')->new({});
$book->populate_from_widget($result);
In InstantCRUD data is filled in with
my $item = $result->save_to_db();
Can anyone experienced tell me about drawbacks of both ways to do create?
Alex.
More information about the Catalyst
mailing list