Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for Image fields when using a non-default connection #71

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

nadinengland
Copy link

Image fields only used the default connection when loading rather than using parent Post's connection. I noticed that for all fields there is a postMeta that is set to use the same connection as the parent, so the Image field has been changed to use this instead of using the base PostMeta macro methods.

In order to test this I've had to create a new connection in tests/config/bootstrap.php, and also make a fixture class in tests/CorcelIntegrationTest.php. I would have put it in its own file, but the tests themselves aren't loaded via PSR-4. I thought it would be simpler to add the class inline for the time being, as its a wider change to load them all this way.

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.

1 participant