# File lib/big_record/fixtures.rb, line 892
      def setup_bigrecord_fixture_accessors(table_names = nil)
        (table_names || fixture_table_names).each do |table_name|
          table_name = table_name.to_s.tr('.', '_')

          define_method(table_name) do |*fixtures|
            force_reload = fixtures.pop if fixtures.last == true || fixtures.last == :reload
            @bigrecord_fixture_cache[table_name] ||= {}

            instances = fixtures.map do |fixture|
              @bigrecord_fixture_cache[table_name].delete(fixture) if force_reload

              if @loaded_bigrecord_fixtures[table_name][fixture.to_s]
                @bigrecord_fixture_cache[table_name][fixture] ||= @loaded_bigrecord_fixtures[table_name][fixture.to_s].find
              else
                raise StandardError, "No fixture with name '#{fixture}' found for table '#{table_name}'"
              end
            end

            instances.size == 1 ? instances.first : instances
          end
        end
      end