Skip to content

Conversation

@markwalet
Copy link
Contributor

When the getTable method is called multiple times, the method will make the table property from scratch every time. I don't think this is necessary. By setting the property in the getTable() method when it doesn't exist yet, we can prevent that. I also added a test for this case.

I am not sure if this could be a breaking change. For my projects it isn't. Feel free to close this PR if it is a breaking change.

@bonzai
Copy link
Contributor

bonzai commented Nov 12, 2018

#22222
#22478

@markwalet
Copy link
Contributor Author

Ah sorry, I'll check the closed PR's a little bit better the next time.

Are there any tests that fail when this implementation is suggested? I tried the failed tests from travis-ci but they work locally.

@staudenmeir
Copy link
Contributor

It would be great if you could write such a test.

@driesvints driesvints changed the title Get table improvement [5.7] Get table improvement Nov 13, 2018
@taylorotwell
Copy link
Member

Yeah, this has caused problems in the past.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants