Class OneToMany
Defines a OneToMany relationship. This is the parent side of a standard
foreign key system.
-
Alchemy\core\Element
implements
Alchemy\core\IElement
-
Alchemy\orm\Relationship
-
Alchemy\orm\OneToMany
Methods summary
public
array
|
#
getRemoteColumnMap( mixed $origin )
Return a map of remote column names and their values according to this
relationship, relative to $origin, for querying. Applies whether $origin is a
table reference or a DataMapper. Must be implemented by all Relationship
types.
Return a map of remote column names and their values according to this
relationship, relative to $origin, for querying. Applies whether $origin is a
table reference or a DataMapper. Must be implemented by all Relationship
types.
Parameters
Returns
array [Column => Value, ...]
Overrides
|
public
|
#
add( mixed $origin, mixed $child )
|
Methods inherited from Alchemy\orm\Relationship
__construct(),
assertDestinationType(),
createBackref(),
findForeignKey(),
findForeignKeyImpl(),
getBackref(),
getDestinationClass(),
getForeignKey(),
getInverse(),
getName(),
getOriginClass(),
getRef(),
isNullable(),
isParent(),
isSingleObject()
|
Methods inherited from Alchemy\core\Element
__callStatic(),
__clone(),
addTag(),
addTags(),
copy(),
define(),
define_alias(),
getDescription(),
getID(),
getTag(),
getType(),
get_definition(),
listTags(),
normalize_arg()
|