public static function _getRelation ($obj, $path, $params = array ())
	{
		
		foreach ($path as $class => $name)
		{
			
			$class		= get_class ($obj);
			$childClass	= $class::$attributes[$name]['relation'];
			
			if ($obj->iget ($name))
			{
				$params['where'][]	= array ($childClass::$pk, $obj->iget ($name));
				$obj	= $childClass::_Read ($params);
			}
			else
			{
				return FALSE;
			}
			
		}
		
		return $obj;
		
	}
public static function _getRelation ($obj, $path, $params = array ())
	{
		
		foreach ($path as $class => $name)
		{
			
			$class		= get_class ($obj);
			$childClass	= $class::$attributes[$name]['relation'];
			
			if ($obj->iget ($name))
			{
				$params['where'][]	= array ($childClass::$pk, $obj->iget ($name));
				$obj	= $childClass::_Read ($params);
			}
			else
			{
				return FALSE;
			}
			
		}
		
		return $obj;
		
	}
public static function _getRelation ( $ obj , $ path , $ params = array ( ) ) { foreach ( $ path as $ class => $ name ) { $ class = get_class ( $ obj ) ; $ childClass = $ class :: $ attributes [ $ name ] [ 'relation' ] ; if ( $ obj -> iget ( $ name ) ) { $ params [ 'where' ] [ ] = array ( $ childClass :: $ pk , $ obj -> iget ( $ name ) ) ; $ obj = $ childClass :: _Read ( $ params ) ; } else { return FALSE ; } } return $ obj ; }
Return a related object for a given object and path
@param Model $obj Starting object
@param array $path Path to the end object
@param array $params Query parameter array
@return \Sonic\Model|boolean
Return a related object for a given object and path