Entity Assoiciations added to database

This commit is contained in:
Finn 2017-11-23 13:20:26 +00:00
parent cb9c219b27
commit d36091528f
2 changed files with 46 additions and 0 deletions

View file

@ -44,6 +44,13 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"associations",
"Pear::LocalLoop::Schema::Result::EntityAssociation",
{ "foreign.entity_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->has_many(
"sales",
"Pear::LocalLoop::Schema::Result::Transaction",