Skip to content

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