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
[framework] data object properties review #787
Conversation
simara-svatopluk
commented
Feb 4, 2019
Q | A |
---|---|
Description, reason for the PR | review of data object properties and documentation of usage |
New feature | No |
BC breaks | No |
Fixes issues | ... |
Standards and tests pass | Yes |
Have you read and signed our License Agreement for contributions? | Yes |
d46dc5b
to
58b9bbe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
looks good. I have just few questions and suggestions.
462301c
to
ff9190e
Compare
7412b0e
to
aa477f2
Compare
… be always bool - it is the way we use bool properties in data objects - also the property is used everywhere as it is bool (not nullable)
- $name is localized, so it is an array of strings - $sellingDenied is always boolean
…erywhere used as string
…t value false becuase the code expects this variable to be bool
- now sets also $domainId because it is expected by the method name
…alue "1" - because the value was already rewritten in all usages and now domainId properties are unified in all *Data objects
- it is the way we use bool properties in data objects - also the property is used everywhere as it is bool (not nullable)
- it is the way we use bool properties in data objects - also the property is used everywhere as it is bool (not nullable)
… used by the system
- for all locales - initializes with null (as the current admin form does) - changed phpdoc of multilanguage properties appropriately - fixed code snippets in documentation
…ey are initialized for each locale
3547ae9
to
ed0c101
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a couple of suggestions for the docs:
|
febd126
to
95993b1
Compare
…llLocales(), to avoid code duplication - changed return value of Domain:getAllLocales() to keyed array so it matches Localization method perfectly
2fe450f
to
06d2760
Compare