v5:activerecord:classhasmany
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
activerecord:classhasmany [2015/12/05 02:36] – created mnewnham | activerecord:classhasmany [2015/12/05 16:02] – mnewnham | ||
---|---|---|---|
Line 3: | Line 3: | ||
<WRAP right box> | <WRAP right box> | ||
== Syntax == | == Syntax == | ||
- | | + | |
- | string $class, | + | string $class, |
- | string $relation, | + | string $relation, |
- | optional string $foreignKey = ' ', | + | optional string $foreignKey = '', |
- | optional string $foreignClass = ' | + | optional string $foreignClass = ' |
- | ) | + | ) |
</ | </ | ||
+ | ------------------------------ | ||
===== Description ===== | ===== Description ===== | ||
- | Globally defines a one-to-many relationship | + | Globally defines a one-to-many relationship. Once defined, the relationship persists for the life of the script. |
+ | ===== Parameters ===== | ||
+ | ------------------------- | ||
===== Usage ===== | ===== Usage ===== | ||
<code php> | <code php> |
v5/activerecord/classhasmany.txt · Last modified: 2016/01/13 02:15 by mnewnham