Skip to content

Add support for custom PK names, hidden attributes, and different DB connections #10

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

chalcedonyt
Copy link

  • Refer to the incrementing model property to determine whether it is a uniqueId
  • Retrieve the model PK using the getKey method instead of assuming it's called id
  • Ignore hidden attributes on the model when creating the bigq table - this is because toArray ignores them too.
  • Allows models from different DBs by calling DB::connection

…efer to insertId with the getKey() function to allow for use on models where the PK is not 'id'. Put in a check for the DB::connection to allow for use on multiple DBs. Check against the fields on the model (which toArray() will check against)
@Medalink
Copy link
Contributor

Hey @chalcedonyt would you be able to add your changes to the changelog as well?

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