Skip to content
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

Error calling getForeignKey Method of HasMany class #464

Closed
andreifiroiu opened this issue Aug 17, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@andreifiroiu
Copy link

commented Aug 17, 2017

The method was renamed to getQualifiedForeignKeyName in Laravel 5.4, so calling method updateRelations() from BaseRepository class throws an error:

(1/1) BadMethodCallException Call to undefined method Illuminate\Database\Query\Builder::getForeignKey()

in Builder.php (line 2450)
at Builder->__call('getForeignKey', array())in Builder.php (line 1250)
at Builder->__call('getForeignKey', array())
at call_user_func_array(array(object(Builder), 'getForeignKey'), array())in Relation.php (line 340)
at Relation->__call('getForeignKey', array())in BaseRepository.php (line 78)

@Katenkka

This comment has been minimized.

Copy link
Contributor

commented Aug 25, 2017

Have the same problem

@Katenkka Katenkka referenced this issue Aug 25, 2017

Merged

Fixes #464 #468

mitulgolakiya added a commit that referenced this issue Aug 26, 2017

mitulgolakiya added a commit that referenced this issue Sep 6, 2017

Fixes #464
Fixes #464 - The method getForeignKey() was renamed to getQualifiedForeignKeyName in Laravel 5.4

mitulgolakiya added a commit that referenced this issue Sep 6, 2017

Fixes #464
Fixes #464 - The method getForeignKey() was renamed to getQualifiedForeignKeyName in Laravel 5.4

mitulgolakiya added a commit that referenced this issue Sep 6, 2017

Fixes #464
Fixes #464 - The method getForeignKey() was renamed to getQualifiedForeignKeyName in Laravel 5.4

mitulgolakiya added a commit that referenced this issue Sep 6, 2017

Fixes #464
Fixes #464 - The method getForeignKey() was renamed to getQualifiedForeignKeyName in Laravel 5.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.