Welcome Guest, Not a member yet? Register   Sign In
Using Update() on primary key named differently than id
#2

Have you tried using the documentation's suggestion of setting the primaryKey variable?

https://codeigniter.com/user_guide/model...your-model

Code:
protected $primaryKey = 'other_id_field';
Reply


Messages In This Thread
RE: Using Update() on primary key named differently than id - by craig - 05-18-2021, 07:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB