Hello, I have a list of related records, which I count by entity\count related. Countin all record does work.
These records may have two states, one is sold and one is available. I would like to count the records, which have the bool field sold marked as such. Is that possible? And how? I did not find a solution so far.
I tested this way
but this does not work.
These records may have two states, one is sold and one is available. I would like to count the records, which have the bool field sold marked as such. Is that possible? And how? I did not find a solution so far.
I tested this way
PHP Code:
countSold = entity\countRelated ('linkRelated', 'sold=', true);
Comment