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

[proposal] Update transformer-builder #1587

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lelkadi
Copy link

@lelkadi lelkadi commented Dec 7, 2018

In the unserialize(), only transform pRecord's columns that match model's attributes.
Or in other words, skip any fields available in the pRecord that don't match any attribute of the Model.

In the unserialize(), only transform pRecord's columns that match model's attributes. 
Or in other words, skip any fields available in the pRecord that don't match any attribute of the Model.
@sailsbot
Copy link

sailsbot commented Dec 7, 2018

Hi @lelkadi! It looks like your pull request title doesn’t quite conform to our guidelines. Please edit the title so that it starts with [proposal], [patch], [fixes #], or [implements #]. Once you've fixed it, post a comment below (e.g. "ok, fixed!") and we'll take a look!

@lelkadi lelkadi changed the title PROPOSAL: Update transformer-builder [proposal] Update transformer-builder Dec 7, 2018
@lelkadi
Copy link
Author

lelkadi commented Dec 7, 2018

ok, fixed!

@lelkadi
Copy link
Author

lelkadi commented Dec 7, 2018

I think this proposed change is essential for an ORM, as it allows more control on the data on the Model level.

Changing let keyword to var, in transformer's unserialize(), for backward compatibility with old JS versions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants