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 while following readme file #62

Closed
valpuia opened this issue Jun 28, 2023 · 0 comments · Fixed by #84
Closed

Error while following readme file #62

valpuia opened this issue Jun 28, 2023 · 0 comments · Fixed by #84
Assignees
Labels
bug Something isn't working

Comments

@valpuia
Copy link

valpuia commented Jun 28, 2023

Describe the bug

  1. Squire\Models\Airline::continent(): Return value must be of type Illuminate\Database\Eloquent\Relations\BelongsTo, Illuminate\Database\Eloquent\Relations\HasOneThrough returned
    2, 3, 4, 5. SQLSTATE[HY000]: General error: 1 no such table: countries

To reproduce

  1. Airline::with('continent')->first();
  2. Continent::with('regions')->first();
  3. Continent::with('timezones')->first();
  4. Region::with('continent')->first()
  5. Timezone::with('continent')->first()

Expected behavior
No Error

Context

  • Squire version: 3.4 (latest)
  • Laravel version: 10.13.5
  • Server OS: Ubuntu 22.04
  • PHP version: 8.2.7

Additional details
I'm just checking out all the model with relations.. I install all of them (only english -en) and check base on readme file
All model have use Squire\Models\ModelName

@valpuia valpuia added the bug Something isn't working label Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants