Take me over?
NAME
Alzabo::Create::ForeignKey - Foreign key objects for schema creation.
SYNOPSIS
use Alzabo::Create::ForeignKey;
INHERITS FROM
Alzabo::ForeignKey
METHODS
new
Parameters:
columns_from =>
Alzabo::Create::Column
object(s)columns_to =>
Alzabo::Create::Column
object(s)These two parameters may be either a single column or a reference to an array columns. The number of columns in the two parameters must match.
min_max_from => see below
min_max_to => see below
The two min_max attributes both take the same kind of argument, an array reference two scalars long.
The first of these scalars can be the value '0' or '1' while the second can be '1' or 'n'.
Returns
A new Alzabo::Create::ForeignKey
object.
set_columns_from (Alzabo::Create::Column
object(s))
Set the column(s) that the relation is from. This can be either a single a column object or a reference to an array of column objects.
set_columns_to (Alzabo::Create::Column
object(s))
Set the column(s) that the relation is to. This can be either a single a column object or a reference to an array of column objects.
set_min_max_from (\@min_max_value) see above for details
Sets the min_max value of the relation of the 'from' table to the 'to' table.
set_min_max_to (\@min_max_value) see above for details
Sets the min_max value of the relation of the 'to' table to the 'from' table.
AUTHOR
Dave Rolsky, <autarch@urth.org>