gshank / dbix-class-resultset-recursiveupdate

DBIx::Class::ResultSet::RecursiveUpdate
4 stars 9 forks source link

Update foreign key instead of related object #3

Closed gerhardj closed 11 years ago

gerhardj commented 11 years ago

Hey, i have changed _update_relation a bit so that on a belongs_to relationship (single), the existing related object is not touched when all PKs are set for that relation.

With that i can use the same datastructure for insert and update in a simple HTML::FormHandler::Model::DBIC form.