Skip to content

Adds support for custom primary ID names to the Document object. #7

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nabeards
Copy link

@nabeards nabeards commented Nov 8, 2013

This makes the id key of the Document the same as the Primary ID from the table. On tables with custom primary id names, I would always get a key of 'id' set to 'null' on SELECT statements. This prevents the extra null id key.

@simianhacker
Copy link
Contributor

@nabeards I have a commit in my working repo that will address this, as soon as I have a chance I will push it up.

@simianhacker
Copy link
Contributor

@nabeards Oops... my mistake. This is the part that needed fixing. Can you write a few unit tests for this as well? I will merge once the tests have been added.

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.

2 participants