CoolRunner-dk / business-central-php

SDK for Microsoft Business Central
MIT License
11 stars 14 forks source link

api call upon initiating #5

Open pazion opened 3 years ago

pazion commented 3 years ago

I noticed that when instantiating a Model/Entity it does a call to the API , this is triggered from EntityCollection::__construct.

When setting the limit high, this fetches a lot of data.

I had a look, but the propagate is really dependent in the construct functionality.

I also thought about limiting the construct to 1, but believe this has consequences for the pagination?