PHP Class Ouzo\Relations

Mostrar archivo Open project: letsdrink/ouzo

Public Methods

Method Description
__construct ( $modelClass, array $params, $primaryKeyName )
getRelation ( $name ) : Relation
hasRelation ( $name )

Private Methods

Method Description
_addRelation ( Relation $relation )
_addRelations ( array $params, $primaryKeyName )

Method Details

__construct() public method

public __construct ( $modelClass, array $params, $primaryKeyName )
$params array

getRelation() public method

public getRelation ( $name ) : Relation
$name
return Ouzo\Db\Relation

hasRelation() public method

public hasRelation ( $name )