Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9116215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:37:06+00:00 2026-06-17T04:37:06+00:00

I think I found a bug for which I have prepared a small test

  • 0

I think I found a bug for which I have prepared a small test (based on DocCode project):

test("all customers (concise)", 1, function () {
    var realEm = newEm();
    var metadataStore = realEm.metadataStore; // model metadata known to this EntityManager
    var orderType = metadataStore.getEntityType("Order"); // metadata about the Customer type 
    var newOrder = orderType.createEntity(); // call the factory function for the Customer type

    realEm.addEntity(newOrder);

    newOrder.CustomerID("729de505-ea6d-4cdf-89f6-0360ad37bde7");

    var items = realEm.rejectChanges();

    var query = EntityQuery.from("Customers")
        .where("CustomerID", "==", "729de505-ea6d-4cdf-89f6-0360ad37bde7")
        .expand("Orders");
    stop();
    realEm.executeQuery(query)
        .then(function (data) {
            console.log(data);
            /*SELECT        OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, ShippedDate, Freight, ShipName, ShipAddress, ShipCity, ShipRegion, ShipPostalCode, ShipCountry, 
            RowVersion
            FROM[Order]
            WHERE(CustomerID = '729de505-ea6d-4cdf-89f6-0360ad37bde7')*/
            ok(data.results[0].Orders().length == 10, "The customers must have 10 Orders")
        })
        .fin(start);
});

As you can see (performing the commented query) the Customer must have 10 Orders, but the array returned has 11.

Am I right or am I doing something wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T04:37:08+00:00Added an answer on June 17, 2026 at 4:37 am

    Ok, this was a bug and has been fixed in v 0.84.2. Please give it a try and let us know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think I may have found a bug in PHP's crypt() function under Windows.
What if I think, that I found a bug in an open-source-app? What steps
I've found what I think may be a bug with Ivar and Objective-C runtime.
Today I found LiquiBase project and I think it is very interesting. I would
I think all of the tutorials I found are from before you could use
I found an interesting bug and wanted to know you think. Brief background: I've
I have one core site which has all the core functions. I then need
Update: A sample project reproducing this bug can be found here at Microsoft Connect
I ran into a bug I have trouble explaining. Now that I found the
I think I found a bug in opencart so in the featured module there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.