|
NAMEOryx::Association::Hash - Abstract base class for hash associations SYNOPSIS package CMS::NamedParagraphs;
use base qw( Oryx::Class );
our $schema = {
associations => [ {
role => 'paras',
type => 'Hash',
class => 'CMS::Paragraph',
} ],
};
$x = CMS::Paragraph->create({ para => 'This is a paragraph.' });
$y = CMS::NamedParagraphs->create({});
$y->paras->{foo} = $x;
$y->update;
$y->commit;
DESCRIPTIONProvides the structure for linking two Oryx classes together using a hash table. AUTHORRichard Hundt <richard NO SPAM AT protea-systems.com> COPYRIGHT AND LICENSECopyright (c) 2005 Richard Hundt. This library is free software and may be used under the same terms as Perl itself.
|