• 기록은 기억을 지배한다.
  • Laravel 과 PHP
  • 기록은 기억을 지배한다.
  • Laravel 과 PHP
  • Topics
  • Confluence 강의
  • Email 문의
  • Brunch
  • Github
  • JIRA 강의
  • Laravel 과 PHP
  • Laravel
  • Laravel database & ORM
  • Current: Eloquent ORM 에러 메시지 정리

Eloquent ORM 에러 메시지 정리

 

ORM 의 특성상 문제가 발생하면 원인을 찾기가 매우 힘듭니다.

 

Eloquent 를 사용하면서 발생하는 에러 메시지와 조치 방법을 케이스 별로 정리하는 페이지입니다.

 

에러 메시지

BadMethodCallException in Builder.php line xxxx: Call to undefined method Illuminate\Database\Query\Builder::load()
Call to undefined method Illuminate\Database\Eloquent\Collection::total()
Object of class Illuminate\Database\Eloquent\Relations\HasMany could not be converted to string
Relationship method must return an object of type Illuminate\Database\Eloquent\Relations\Relation

 

 



eloquent-orm

Laravel 과 PHP Logo
Home(새 창)
Copyright © 2022 lesstif • Powered by Scroll Viewport and Atlassian Confluence