redid relationships of transactions/categories

This commit is contained in:
Finn 2018-01-16 13:07:12 +00:00
parent 670d770d84
commit f79ec09782
19 changed files with 5245 additions and 2 deletions

View file

@ -28,7 +28,7 @@ __PACKAGE__->has_many(
"transaction_category",
"Pear::LocalLoop::Schema::Result::TransactionCategory",
{ "foreign.category_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
{ cascade_copy => 0, cascade_delete => 1 },
);
__PACKAGE__->many_to_many(

View file

@ -26,10 +26,12 @@ __PACKAGE__->belongs_to(
"category",
"Pear::LocalLoop::Schema::Result::Category",
"category_id",
{ cascade_delete => 0 },
);
__PACKAGE__->belongs_to(
"transaction",
"Pear::LocalLoop::Schema::Result::Transaction",
"transaction_id",
{ cascade_delete => 0 },
);