public static function belongsTo($model, $options=null)
    {
        $cls = get_called_class();
        if (!array_key_exists($cls, self::$_belongs_to)) {
            self::$_belongs_to[$cls] = array();
        }
        self::$_belongs_to[$cls][$model] = $options ? $options : false;
    }
public static function belongsTo($model, $options=null)
    {
        $cls = get_called_class();
        if (!array_key_exists($cls, self::$_belongs_to)) {
            self::$_belongs_to[$cls] = array();
        }
        self::$_belongs_to[$cls][$model] = $options ? $options : false;
    }
public static function belongsTo ( $ model , $ options = null ) { $ cls = get_called_class ( ) ; if ( ! array_key_exists ( $ cls , self :: $ _belongs_to ) ) { self :: $ _belongs_to [ $ cls ] = array ( ) ; } self :: $ _belongs_to [ $ cls ] [ $ model ] = $ options ? $ options : false ; }
Create a belongs relationship

@param string $model   model
@param mixed  $options options for relation

@return null
Create a belongs relationship