Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Option to have a different primary key in Eloquent #174

Closed
SerendipityNL opened this issue Oct 29, 2015 · 2 comments
Closed

Option to have a different primary key in Eloquent #174

SerendipityNL opened this issue Oct 29, 2015 · 2 comments
Labels

Comments

@SerendipityNL
Copy link

When you specify a different primary in an Eloquent model, the translation fails because it thinks it needs 'id' instead of the already specified primary key.

Is there a way to use the set primary key when it is present? Or just always get the primary key?

Edit:
A quick look in #170 (from @bbredewold) seems so fix this.

@RamonSmit
Copy link

#170 indeed an useful PR. Solves a lot of problems for me. I think @dimsav should merge this PR.
It passes the travis-ci tests and has no conflicts, thereby no harm done.

@dimsav
Copy link
Owner

dimsav commented Nov 15, 2015

Implemented and will be released soon.

@dimsav dimsav closed this as completed Nov 15, 2015
tolnaiz pushed a commit to tolnaiz/laravel-translatable that referenced this issue Jan 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants