def define_associations   
      [:has_one, :has_many, :belongs_to].each do |relation|
        if @configuration.keys.include? :"#{relation}"
          raise "Invalid #{relation} value" if not [Hash, Array, Symbol].include? @configuration[:"#{relation}"].class
          # We nee an array of models, then, we 
          if @configuration[:"#{relation}"].kind_of? Hash
            list_models = @configuration[:"#{relation}"].keys
          elsif @configuration[:"#{relation}"].kind_of? Array
            list_models = @configuration[:"#{relation}"]
          else
            list_models = [@configuration[:"#{relation}"]]
          end
          list_models.each do |model|
              meta_def model.to_s do |force_reload=false|
                if @configuration[:"#{relation}"].kind_of? Hash
                  config = @configuration[:"#{relation}"][model]
                else
                  config = {}
                end
                eval "@model_manager.read_#{relation} model, config, force_reload"
              end

            if "#{relation}" != "has_many"
              meta_def "#{model.to_s}=" do |associate|
                if @configuration[:"#{relation}"].kind_of? Hash
                  config = @configuration[:"#{relation}"][model]
                else
                  config = {}
                end
                eval "@model_manager.write_#{relation} model, @configuration[:#{relation}][model], associate"
                true
              end

              meta_def "build_#{model.to_s}" do |attributes={}|
                if @configuration[:"#{relation}"].kind_of? Hash
                  config = @configuration[:"#{relation}"][model]
                else
                  config = {}
                end
                eval "@model_manager.build_#{relation} model, config, attributes"
                true
              end

              meta_def "create_#{model.to_s}" do |attributes={}|
                if @configuration[:"#{relation}"].kind_of? Hash
                  config = @configuration[:"#{relation}"][model]
                else
                  config = {}
                end
                eval "@model_manager.create_#{relation} model, config, attributes"
                true
              end
            end
          end
        end
      end
    end
def define_associations   
      [:has_one, :has_many, :belongs_to].each do |relation|
        if @configuration.keys.include? :"#{relation}"
          raise "Invalid #{relation} value" if not [Hash, Array, Symbol].include? @configuration[:"#{relation}"].class
          # We nee an array of models, then, we 
          if @configuration[:"#{relation}"].kind_of? Hash
            list_models = @configuration[:"#{relation}"].keys
          elsif @configuration[:"#{relation}"].kind_of? Array
            list_models = @configuration[:"#{relation}"]
          else
            list_models = [@configuration[:"#{relation}"]]
          end
          list_models.each do |model|
              meta_def model.to_s do |force_reload=false|
                if @configuration[:"#{relation}"].kind_of? Hash
                  config = @configuration[:"#{relation}"][model]
                else
                  config = {}
                end
                eval "@model_manager.read_#{relation} model, config, force_reload"
              end

            if "#{relation}" != "has_many"
              meta_def "#{model.to_s}=" do |associate|
                if @configuration[:"#{relation}"].kind_of? Hash
                  config = @configuration[:"#{relation}"][model]
                else
                  config = {}
                end
                eval "@model_manager.write_#{relation} model, @configuration[:#{relation}][model], associate"
                true
              end

              meta_def "build_#{model.to_s}" do |attributes={}|
                if @configuration[:"#{relation}"].kind_of? Hash
                  config = @configuration[:"#{relation}"][model]
                else
                  config = {}
                end
                eval "@model_manager.build_#{relation} model, config, attributes"
                true
              end

              meta_def "create_#{model.to_s}" do |attributes={}|
                if @configuration[:"#{relation}"].kind_of? Hash
                  config = @configuration[:"#{relation}"][model]
                else
                  config = {}
                end
                eval "@model_manager.create_#{relation} model, config, attributes"
                true
              end
            end
          end
        end
      end
    end
Create all model relationships with the user configuration (has_many, has_one and belongs_to)