Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Fix undefined variable bug in MetadataFeature #341

Merged
merged 1 commit into from
Dec 6, 2018

Conversation

Xerkus
Copy link
Member

@Xerkus Xerkus commented Oct 18, 2018

This PR fixes bug introduced in #315
It was not released and exists only in master/develop branches as such no changelog entry is needed.
This PR restores original behavior, adds tests and reapplies changes from #315 properly.

  • Are you fixing a bug?
    • Detail how the bug is invoked currently.
      Bug is invoked when metadata information is recorded into shared data of the TDG metadata feature
    • Detail the original, incorrect behavior.
      Undefined variable error is thrown and invalid data is written into shared data
    • Detail the new, expected behavior.
      Proper behavior restored, column name or list of columns in primary key are written into shared data
    • Base your feature on the master branch, and submit against that branch.
    • Add a regression test that demonstrates the bug, and proves the fix.
    • Add a CHANGELOG.md entry for the fix.

Supersedes #340

@Xerkus Xerkus added the bug label Oct 18, 2018
@Xerkus Xerkus requested a review from Ocramius October 18, 2018 12:28
} else {
$primaryKey = $pkc;
$primaryKey = $pkcColumns;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Original line had $pkc->getColumns() here: 1ac578f#diff-ca8362b8be8f02af0316d9c0e3979808L80

@ezimuel ezimuel merged commit c8fafe8 into zendframework:master Dec 6, 2018
@ezimuel
Copy link
Contributor

ezimuel commented Dec 6, 2018

@Xerkus thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants