Skip to content

Update getting primary key#220

Open
r32rf wants to merge 2 commits intonicolaslopezj:masterfrom
r32rf:master
Open

Update getting primary key#220
r32rf wants to merge 2 commits intonicolaslopezj:masterfrom
r32rf:master

Conversation

@r32rf
Copy link
Copy Markdown

@r32rf r32rf commented Apr 28, 2020

No description provided.

r32rf added 2 commits April 28, 2020 10:29
Signed-off-by: r32rf <60923682+r32rf@users.noreply.github.com>
$this->primaryKey doesn't work when the primary key is controlled by
another trait.  For example when using a trait to set the primary key to
'uuid' will cause SearchableTrait to assume the primaryKey is still
'id', inherited from Model.

Since this method was only introduced in Laravel 5.4 since the
refactoring of Eloquent, this will drop support for Laravel 4.  However,
I do not see this as a great concern as Laravel 4 is unsupported and so
is anything below Laravel 5.5.

Signed-off-by: r32rf <60923682+r32rf@users.noreply.github.com>
@nicolaslopezj
Copy link
Copy Markdown
Owner

We need review on this

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.

3 participants