You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
array_key_exists(): The first argument should be either a string or an integer
at Model->getKey()
in Auditable.php (line 250)
i implement it in my class that has composite key as primary
class PurchaseDetail extends Model implements AuditableContract
{
use HasCompositeKey, Auditable;
public $timestamps = false;
protected $primaryKey = ['purchase_id','item_id','unit_id'];
}
Expected Behaviour
auditable_id : multi primary
Possible Solutions
making the class model not composite primary instead using id with auto increment. this solution may cause duplicate in some record.
The text was updated successfully, but these errors were encountered:
Actual Behaviour
i get this error actualy in my project
i implement it in my class that has composite key as primary
Expected Behaviour
auditable_id : multi primary
Possible Solutions
making the class model not composite primary instead using id with auto increment. this solution may cause duplicate in some record.
The text was updated successfully, but these errors were encountered: