# File lib/model/data_mapper.rb, line 47
      def extjs_associations
        if @extjs_associations.nil?  
          @extjs_associations = {}
          self.relationships.keys.each do |key|
            assn = self.relationships[key]
            @extjs_associations[key.to_sym] = {
              :name => key, 
              :type => type = (assn.options[:max].nil? && assn.options[:min].nil?) ? :belongs_to : (assn.options[:max] > 1) ? :many : nil ,
              :class => assn.parent_model,
              :foreign_key => assn.child_key.first.name,
              :is_polymorphic => false # <-- No impl. for DM is_polymorphic.  Anyone care to implement this?
            }
          end
        end
        @extjs_associations
      end