![]() |
![]()
| ![]() |
![]()
NAMEOryx::Association::Reference - Abstract base class for reference associations SYNOPSISpackage CMS::Document; use base qw( Oryx::Class ); our $schema = { associations => [ { role => 'author', type => 'Reference', class => 'CMS::Person', } ], }; $x = CMS::Person->create({ name => 'Richard Hundt' }); $y = CMS::Document->create({}); $y->author($x); $y->update; $y->commit; DESCRIPTIONProvides the structure for linking two Oryx classes together using a simple references. AUTHORRichard 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.
|