DBIx-Class-Objects

 view release on metacpan or  search on metacpan

t/lib/Sample/Schema/Result/Customer.pm  view on Meta::CPAN

Type: has_many

Related object: L<Sample::Schema::Result::Order>

=cut

__PACKAGE__->has_many(
  "orders",
  "Sample::Schema::Result::Order",
  { "foreign.customer_id" => "self.customer_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);

=head2 person

Type: belongs_to

Related object: L<Sample::Schema::Result::Person>

=cut

t/lib/Sample/Schema/Result/Item.pm  view on Meta::CPAN

Type: has_many

Related object: L<Sample::Schema::Result::OrderItem>

=cut

__PACKAGE__->has_many(
  "order_items",
  "Sample::Schema::Result::OrderItem",
  { "foreign.item_id" => "self.item_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-02-13 13:30:36
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jDqv+XEj9TGXg7DN7B4vmw


# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;

t/lib/Sample/Schema/Result/Order.pm  view on Meta::CPAN

Type: has_many

Related object: L<Sample::Schema::Result::OrderItem>

=cut

__PACKAGE__->has_many(
  "order_items",
  "Sample::Schema::Result::OrderItem",
  { "foreign.order_id" => "self.order_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-02-13 13:30:36
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aenC7bkKWYnrvHo2ALypQA


# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;

t/lib/Sample/Schema/Result/Person.pm  view on Meta::CPAN

Type: might_have

Related object: L<Sample::Schema::Result::Customer>

=cut

__PACKAGE__->might_have(
  "customer",
  "Sample::Schema::Result::Customer",
  { "foreign.person_id" => "self.person_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-02-13 13:30:36
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:a88+qBFOLWbatHQZNXYqAg

1;

t/lib/Sample/Schema/Result/User.pm  view on Meta::CPAN

Type: has_many

Related object: L<Sample::Schema::Result::Session>

=cut

__PACKAGE__->has_many(
  "sessions",
  "Sample::Schema::Result::Session",
  { "foreign.username" => "self.username" },
  { cascade_copy => 0, cascade_delete => 0 },
);


# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-21 15:10:15
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zXnVRzmM41+ADiMb/Ecopw


# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;



( run in 0.502 second using v1.01-cache-2.11-cpan-49f99fa48dc )