DBIx-DBO2

 view release on metacpan or  search on metacpan

CHANGES  view on Meta::CPAN

    2002-01-31 Fixed line_items fetch criteria.

  Version 0.003

    2002-01-31 Released to CPAN as DBIx-DBO2-0.003.tar.gz.

    2002-01-31 Added comparison with other CPAN modules to ReadMe.

    2002-01-26 Simon: Corrected Fields::alias(). Corrected Record's check of
    hooks before deletion and insertion. Added interfaces to
    Fields::line_items for cascade_delete, restrict_delete, and
    nullify_delete interfaces.

  Version 0.002

    2002-01-25 Simon: Corrected dependency; we require DBIx-SQLEngine-0.003.
    Eliminated pointless dependency on Perl 5.6.

  Version 0.001

    2002-01-21 Simon: Now using Composite::Inheritable hooks for post_fetch,

DBO2/Docs/Changes.pod  view on Meta::CPAN


2002-01-31 Fixed line_items fetch criteria.


=head2 Version 0.003 

2002-01-31 Released to CPAN as DBIx-DBO2-0.003.tar.gz.

2002-01-31 Added comparison with other CPAN modules to ReadMe. 

2002-01-26 Simon: Corrected Fields::alias(). Corrected Record's check of hooks before deletion and insertion. Added interfaces to Fields::line_items for cascade_delete, restrict_delete, and nullify_delete interfaces.


=head2 Version 0.002

2002-01-25 Simon: Corrected dependency; we require DBIx-SQLEngine-0.003. Eliminated pointless dependency on Perl 5.6.


=head2 Version 0.001

2002-01-21 Simon: Now using Composite::Inheritable hooks for post_fetch, etc.

DBO2/Docs/Comparison.pod  view on Meta::CPAN

Support for this module is available from the author (simonm@cavalletto.org). (The author is also available for support contracts or consulting engagements.)

=head2 Status

Actively developed and supported by the author. Recently released to CPAN after several years of in-house use, including current use on several e-commerce sites.

=head2 Other

A callback mechanism allows you to specify method names or arbitrary subroutines to be called immediately before or after each record is retrieved, inserted, updated, or deleted. You can add these callbacks to all record classes, to a particular clas...

The method-generator code leverages this capability; for example, declaring a one-to-many relationship using the "line_items --cascade_delete" option both declares a delete_items method, and adds that method to the "post_delete" callback so that it w...


=head1 SEE ALSO

See L<DBIx::DBO2> for an overview of this framework.

=cut

DBO2/Fields.pm  view on Meta::CPAN


=back

You can also specify an array-ref value for the default_criteria attribute; if present, it is treated as a list of fieldname/value pairs to be passed to the fetch and new methods of the related class.


=head3 restrict_delete Interface

Identical to the default interface except as follows: an ok_delete hook is installed to check for the existance of any related records, in which case the deletion is cancelled. This prevents you from deleting the "parent" record for a number of relat...

=head3 cascade_delete Interface

Identical to the default interface except as follows: a post_delete hook is installed to delete all of the related records after the parent record is deleted.

=head3 nullify_delete Interface

Identical to the default interface except as follows: a post_delete hook is installed to change all of the related records to have a default value.

=cut

sub line_items {

DBO2/Fields.pm  view on Meta::CPAN

	},
      },
      nullify_on_delete  => { 
	-base => 'default', 
	'nullify_*'=>'nullify', 
	-params => {
	  delete_default => undef,
	  hook => { post_delete => 'nullify_*' }
	},
      },
      cascade_delete  => { 
	-base => 'default', 
	-params => {
	  hook => { post_delete => 'delete_*' }
	},
      },
    },
    'behavior' => {
      'fetch' => q{
	  my $related = _ATTR_REQUIRED_{related_class};



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