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

Redesign the column mapping configuration #41

Merged
merged 1 commit into from
Feb 6, 2017
Merged

Redesign the column mapping configuration #41

merged 1 commit into from
Feb 6, 2017

Conversation

sstok
Copy link
Member

@sstok sstok commented Feb 6, 2017

The column mapping system is completely redesigned for speed, a good developer experience
and less complexity. A number of unused methods were removed.

WhereBuilder

  • setField() now allows to set the mappings for multiple columns more cleanly
  • setField() no longer accepts types as object (string only)
  • setField() arguments changed to: $fieldName, $column, $alias, $type
  • getFieldConversions() and getValueConversions() have been removed as they are not actually used anywhere
  • Updated and clarified php descriptions

QueryField

  • This class now final
  • Properties are now public (READ-ONLY) for better performance
  • All getter methods have been removed
  • The column property now includes the table alias (if any),
    use tableColumn to get actual column name with alias

QueryGenerator / QueryPlatformInterface

  • Internal methods now expect the QueryField rather then the fieldName
  • The provided fields must be a nested array now [field-name][mapping-name] => QueryField

The column mapping system is completely redesigned for speed, a good developer experience
and less complexity. A number of unused methods were removed.

## WhereBuilder

* setField() now allows to set the mappings for multiple columns more cleanly
* setField() no longer accepts types as object (string only)
* setField() arguments changed to: $fieldName, $column, $alias, $type
* getFieldConversions() and getValueConversions() have been removed as they are not actually used anywhere
* Updated and clarified php descriptions

## QueryField

* This class now final
* Properties are now public (READ-ONLY) for better performance
* All getter methods have been removed
* The column property now includes the table alias (if any),
   use tableColumn to get actual column name with alias

## QueryGenerator / QueryPlatformInterface

* Internal methods now expect the QueryField rather then the fieldName
* The provided fields must be a nested array now `[field-name][mapping-name] => QueryField`
@sstok sstok merged commit 47b391d into rollerworks:master Feb 6, 2017
@sstok sstok deleted the refactor/2.0/mapping-system branch February 6, 2017 17:49
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