Class Relationship
Base class for defining the relationships between models Subclass this to create separate relationship types like OneToOne, OneToMany, etc.
- Alchemy\core\Element implements Alchemy\core\IElement
- Alchemy\orm\Relationship
public
|
#
__construct( string $type, string $args, array $origin, boolean $name, mixed $createBackref = true )
Object constructor for an abstract model relationship |
public
|
|
protected
|
|
protected
|
|
protected
|
#
findForeignKeyImpl(
Implementation function used by |
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
string
|
|
public
boolean
|
#
isSingleObject( )
Return true if this relationship can structurally only ever return a single object. |
public
boolean
|
|
public
boolean
|
|
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. |
__callStatic(),
__clone(),
addTag(),
addTags(),
copy(),
define(),
define_alias(),
getDescription(),
getID(),
getTag(),
getType(),
get_definition(),
listTags(),
normalize_arg()
|
protected
mixed
|
$name |
|
|
protected
mixed
|
$origin |
|
|
protected
mixed
|
$destination |
|
|
protected
mixed
|
$foreignKey |
|
|
protected
mixed
|
$args |
|
|
protected
mixed
|
$inverse |
|
$id,
$tags,
$type
|