Oryx::Association::Hash - Abstract base class for hash associations
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;
Provides the structure for linking two Oryx classes together using a hash table.
Richard Hundt <richard NO SPAM AT protea-systems.com>
Copyright (c) 2005 Richard Hundt.
This library is free software and may be used under the same terms
as Perl itself.