my update is choosing a different column which i don't have in my table. Please i need assistance
SQLSTATE[42S22]: Column not found: 1054 Champ 'companyprofiles.id' inconnu dans where clause (SQL: select * from companyprofiles
where companyprofiles
.id
= 2 limit 1)
what i have is user_id thus what i need to choose
SirMahlon
0
Junior Poster in Training
Recommended Answers
Jump to PostShow your model object and your controller code.
Jump to PostSure is
$key
and not$primaryKey
?protected $primaryKey = 'user_id';
Model source:
All 7 Replies
diafol
SirMahlon
0
Junior Poster in Training
SirMahlon
0
Junior Poster in Training
cereal
1,524
Nearly a Senior Poster
Featured Poster
SirMahlon
0
Junior Poster in Training
SirMahlon
0
Junior Poster in Training
Sikander Nasar
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.