Skip to content
This repository has been archived by the owner. It is now read-only.

Option to have a different primary key in Eloquent #174

SerendipityNL opened this issue Oct 29, 2015 · 2 comments


Copy link

commented Oct 29, 2015

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?

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


This comment has been minimized.

Copy link

commented Oct 30, 2015

#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 added a commit that referenced this issue Nov 15, 2015

@dimsav dimsav added the feature label Nov 15, 2015


This comment has been minimized.

Copy link

commented Nov 15, 2015

Implemented and will be released soon.

@dimsav dimsav closed this 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.
None yet
3 participants
You can’t perform that action at this time.