LeanQuery/HydratorMeta.php
/**
	 * @param string $alias
	 * @param Relationship|string $relationship
	 * @throws InvalidArgumentException
	 */
@param string $alias
@param Relationship|string $relationship
@throws InvalidArgumentException
@param string $alias @param Relationship|string $relationship @throws InvalidArgumentException
public function addRelationship($alias, $relationship)
	{
		if (array_key_exists($alias, $this->relationships)) {
			throw new InvalidArgumentException;
		}
		$this->relationships[$alias] = $relationship instanceof Relationship ? $relationship : Relationship::createFromString($relationship);
	}
public function addRelationship ( $ alias , $ relationship ) { if ( array_key_exists ( $ alias , $ this -> relationships ) ) { throw new InvalidArgumentException ; } $ this -> relationships [ $ alias ] = $ relationship instanceof Relationship ? $ relationship : Relationship :: createFromString ( $ relationship ) ; }
@param string $alias
 @param Relationship|string $relationship
 @throws InvalidArgumentException
@param string $alias @param Relationship|string $relationship @throws InvalidArgumentException