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

[Attribute] Update *AttributeByName => *AttributeByCode inline with updated model #3807

Merged
merged 1 commit into from
Jan 5, 2016

Conversation

peteward
Copy link

@peteward peteward commented Jan 4, 2016

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
License MIT

name is now translated so this no longer makes sense

… as name is now translated so this no longer makes sense
@pjedrzejewski
Copy link
Member

Definitely, thanks Peter! 👍

{
foreach ($this->attributes as $attribute) {
if ($attribute->getName() === $attributeName) {
if ($attribute->getAttribute()->getCode() === $attributeCode) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This $attribute should be renamed to $attributeValue because it looks weird :)

Btw. not sure why $this->attributes isn't $this->attributesValues...

Copy link
Author

Choose a reason for hiding this comment

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

definitely agreed, but this isn't the subject of this PR. one for the future.

Copy link
Member

Choose a reason for hiding this comment

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

👍

pjedrzejewski pushed a commit that referenced this pull request Jan 5, 2016
[Attribute] Update *AttributeByName => *AttributeByCode inline with updated model
@pjedrzejewski pjedrzejewski merged commit 08e5364 into Sylius:master Jan 5, 2016
@pjedrzejewski
Copy link
Member

Thanks Peter!

pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
[Attribute] Update *AttributeByName => *AttributeByCode inline with updated model
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.

3 participants