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

Simplify column/value conversion system #43

Merged
merged 1 commit into from
Feb 7, 2017
Merged

Simplify column/value conversion system #43

merged 1 commit into from
Feb 7, 2017

Conversation

sstok
Copy link
Member

@sstok sstok commented Feb 7, 2017

Value conversions was introduced when prepared statement parameters were still supported.
This functionality however has been removed as it caused to much issues, but the conversion system itself was never updated to this new design.

The ValueConversionInterface and ValueConversionInterface are redundant in there purpose, and have been merged together. A ValueConversion is now expected to return a properly formatted and escaped SQL statement.

I minor clarification: When no value conversion is set the Doctrine DBAL type transformation is used, this was already done but due to complexity of the code base this was a bit hidden.

  • Rename SqlFieldConversionInterface to ColumnConversion
  • Rename SqlValueConversion to ValueConversion
  • Rename ConversionStrategyInterface to StrategySupportedConversion

Value conversions was introduced when prepared statement parameters were still supported.
This functionality however has been removed as it caused to much issues, but the conversion system itself
was never updated to this new design.

The ValueConversionInterface and ValueConversionInterface are redundant in there purpose, and have been merged
together. A ValueConversion is now expected to return a properly formatted and escaped SQL statement.

* Rename SqlFieldConversionInterface to ColumnConversion
* Rename SqlValueConversion to ValueConversion
* Rename ConversionStrategyInterface to StrategySupportedConversion
@sstok sstok merged commit 9e8fb3b into rollerworks:master Feb 7, 2017
@sstok sstok deleted the refactor/2.0/conversions branch February 7, 2017 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant