Use model.primaryKeyField for HasMany.count column
In HasMany.count(), replaces model.primaryKeyName with primaryKeyField as is used in Model.count(). This fixes an error when doing a count() on an association with "id" primary key attribute mapped to a field name other than "id"
Showing
with
1 additions
and
1 deletions
-
Please register or sign in to post a comment