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

[Currency] Add isBase flag on CurrencyInterface #3887

Merged

Conversation

CoderMaggie
Copy link
Member

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

Added all methods required to set a Currency as a base one. This PR is connected with #3814, because now during the installation we get only one currency from the user, and we want to set it as the base one.

@pamil
Copy link
Contributor

pamil commented Jan 15, 2016

Somehow I find isBasecounterintuitive, is there any reason why wouldn't we go for isDefault?
Also, we need some way to ensure that there is only one currency with that field enabled.

@pjedrzejewski
Copy link
Member

@pamil @TheMadeleine DefaultableInterface :D

@@ -23,6 +23,7 @@
<field fieldName="code" name="code" type="string" length="3" />
<field fieldName="exchangeRate" name="exchangeRate" type="float" />
<field fieldName="enabled" name="enabled" type="boolean" />
<field name="isBase" column="is-base" type="boolean" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmmm, every other column is called in camelCase, why changing approach for this one?

pjedrzejewski pushed a commit that referenced this pull request Jan 15, 2016
[Currency] Add isBase flag on CurrencyInterface
@pjedrzejewski pjedrzejewski merged commit 33081c9 into Sylius:master Jan 15, 2016
@pjedrzejewski
Copy link
Member

Thanks Magda!

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.

None yet

4 participants