protected function keyForScope( $model )
	{
		return implode( '-', array_map( function ( $column ) use ( $model )
		{
			$value = $model->getAttribute( $column );

			if ( is_null( $value ) )
				return 'NULL';

			return $value;
		}, $model->getScopedColumns() ) );
	}
protected function keyForScope( $model )
	{
		return implode( '-', array_map( function ( $column ) use ( $model )
		{
			$value = $model->getAttribute( $column );

			if ( is_null( $value ) )
				return 'NULL';

			return $value;
		}, $model->getScopedColumns() ) );
	}
protected function keyForScope ( $ model ) { return implode ( '-' , array_map ( function ( $ column ) use ( $ model ) { $ value = $ model -> getAttribute ( $ column ) ; if ( is_null ( $ value ) ) return 'NULL' ; return $ value ; } , $ model -> getScopedColumns ( ) ) ) ; }
Builds a single string for the given scope columns values. Useful for
making array keys for grouping.

@param NestedModel $model
@return string
Builds a single string for the given scope columns values . Useful for making array keys for grouping .