I've try to have max() on a field from a relation. I explain, i've got a hasMany relation and i need to get the max from a field. Here is an exemple :
Model A hasMany Model B. Model B has a position field. I can easily get related with A->getAliasRelation(); and add parameters but is there an easy way to get related model with only the row with max position ?
I'm not sure to be very clear because of my english, so tell me if i made any mistake!