Support the ongoing development of Laravel.io →
posted 8 years ago
Eloquent
Last updated 2 years ago.
0

some answerd on laracasts:

pmall:

So category_id is a string and id an integer? The two column must have exactly the same definition, so they must be the same type. Why would you ever want to have a PK as int and a FK as string?

BartHuis:

aaaah, maybe that was wrong, i was initialy setting everything as string, just to test things, but i don't know for sure if both sides were a string at that time, i just re written the case here. but as you mention, both sides must be the same, so i thing only one of the sites were string and the other int... thanks, will try it later...

0

Sign in to participate in this thread!

Eventy

Your banner here too?

BartHuis barthuis Joined 19 May 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.