I wasted 12 hours debugging this ...
Who in the hell wrote that wicked semicolon? Me?
In the real source, the relation was a little bit complicated, and I wasted time examining it.
$total = 0;
foreach($model->rels as $rel);
{
$total += $rel->count;
}
echo $total; // wrong result!!
Who in the hell wrote that wicked semicolon? Me?
In the real source, the relation was a little bit complicated, and I wasted time examining it.