hi,
I would like to know how it's possible to display in a specific column in front list the count of objects in DB table.
I set my connection with 2 models:
articolo MAIN MODEL
autori
in autori I set up:
relation: hasMany
Accociated Model: articolo
Foreign key: record_id
fields: id,record_id,autoriemail,count(id)
primary key: id
I put this code in frontlist settings
autori.count(id):Autori
where am I wrong?
I would like to know how it's possible to display in a specific column in front list the count of objects in DB table.
I set my connection with 2 models:
articolo MAIN MODEL
autori
in autori I set up:
relation: hasMany
Accociated Model: articolo
Foreign key: record_id
fields: id,record_id,autoriemail,count(id)
primary key: id
I put this code in frontlist settings
autori.count(id):Autori
where am I wrong?