Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Oryx::Association::RefUsercContributed Perl DocOryx::Association::Reference(3)

NAME
       Oryx::Association::Reference - Abstract base class for reference
       associations

SYNOPSIS
	 package 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;

DESCRIPTION
       Provides	the structure for linking two Oryx classes together using a
       simple references.

AUTHOR
       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.

perl v5.32.1			  2006-05-31   Oryx::Association::Reference(3)

NAME | SYNOPSIS | DESCRIPTION | AUTHOR

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Oryx::Association::Reference&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help