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

Fix invalid references to options in fixtures #4421

Merged
merged 1 commit into from
Mar 8, 2016

Conversation

pjedrzejewski
Copy link
Member

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets fixes #4411
License MIT
Doc PR -

@okwinza
Copy link
Contributor

okwinza commented Mar 8, 2016

👍

@pjedrzejewski
Copy link
Member Author

We should generally favor code over name in fixtures, but that's separate issue. :)

@@ -127,7 +127,7 @@ protected function createOption($optionCode, $name, array $nameTranslation, arra
$option->addValue($optionValue);
}

$this->setReference('Sylius.Option.'.$name, $option);
$this->setReference('Sylius.Option.'.$optionCode, $option);
Copy link
Contributor

Choose a reason for hiding this comment

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

No need $name in 2nd function's parameter.

michalmarcinkowski added a commit that referenced this pull request Mar 8, 2016
Fix invalid references to options in fixtures
@michalmarcinkowski michalmarcinkowski merged commit 221125c into Sylius:master Mar 8, 2016
@michalmarcinkowski
Copy link
Contributor

👍

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.

[Fixtures][Install] OutOfBoundsException while installing fixtures
4 participants