I am using phpactiverecord
. We have a table without a primary key and method save()
generated this error:
Notice: Undefined offset: 0 in /home/vasiliy/sites/api/lib/ActiveRecord/lib/Model.php on line 573
In line 573
phpactiverecord
, it tries to use the primary key value, but it is not set because the table does not have a primary key
.
What can I do if my table has no primary key
?